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

Function listDirectory

tools/brother120tool.cc:324–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void listDirectory()
325{
326 for (const auto& i : directory)
327 {
328 const Dirent& dirent = *i.second;
329 std::cout << fmt::format("{:9} {:6.2f}kB type {}: ",
330 dirent.filename,
331 (double)dirent.sectorCount / 4.0,
332 dirent.type);
333
334 if (isValidFile(dirent))
335 std::cout << fmt::format("{} sectors starting at sector {}",
336 dirent.sectorCount,
337 dirent.startSector);
338 else
339 std::cout << "DELETED";
340
341 std::cout << std::endl;
342 }
343}
344
345void insertFile(const std::string& filename)
346{

Callers 1

doExtractFunction · 0.85

Calls 1

isValidFileFunction · 0.85

Tested by

no test coverage detected