MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ReadDir

Method ReadDir

Kernel/src/fs/filesystem.cpp:339–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 }
338
339 int Root::ReadDir(DirectoryEntry* dirent, uint32_t index){
340 if (index < fs::volumes->get_length()){
341 *dirent = (volumes->get_at(index)->mountPointDirent);
342 return 1;
343 } else return 0;
344 }
345
346 FsNode* Root::FindDir(char* name){
347 if(strcmp(name, ".") == 0) return this;

Callers 1

ReadDirFunction · 0.45

Calls 2

get_atMethod · 0.80
get_lengthMethod · 0.45

Tested by

no test coverage detected