MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / opendir

Method opendir

fs/extfs/extfs.cpp:1428–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426 }
1427
1428 photon::fs::DIR *opendir(const char *path) override {
1429 std::vector<::dirent> dirs;
1430 auto ret = do_ext2fs_readdir(fs, path, &dirs);
1431 if (ret) {
1432 errno = -ret;
1433 return nullptr;
1434 }
1435 return new ExtDIR(dirs);
1436 }
1437
1438 IFileSystem *filesystem() {
1439 return this;

Callers 2

opendirFunction · 0.45
remove_allFunction · 0.45

Calls 1

do_ext2fs_readdirFunction · 0.85

Tested by 2

opendirFunction · 0.36
remove_allFunction · 0.36