MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / findFile

Method findFile

lib/vfs/smaky6fs.cc:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 std::shared_ptr<SmakyDirent> findFile(const std::string& filename)
147 {
148 for (auto& de : dirents)
149 if (de->filename == filename)
150 return de;
151
152 throw FileNotFoundException();
153 }
154
155 private:
156 void parseFrom(const Bytes& bytes, unsigned sectorBase)

Callers 2

directoryAtMethod · 0.45
resolveDirentMethod · 0.45

Calls 1

Tested by

no test coverage detected