MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / addFiles

Method addFiles

src/shared/directoryentry.cpp:627–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625};
626
627void DirectoryEntry::addFiles(env::DirectoryWalker& walker, FilesOrigin& origin,
628 const std::wstring& path, DirectoryStats& stats)
629{
630 Context cx = {origin, stats};
631 cx.current.push(this);
632
633 walker.forEachEntry(
634 path, &cx,
635 [](void* pcx, std::wstring_view path) {
636 onDirectoryStart((Context*)pcx, path);
637 },
638
639 [](void* pcx, std::wstring_view path) {
640 onDirectoryEnd((Context*)pcx, path);
641 },
642
643 [](void* pcx, std::wstring_view path, FILETIME ft, uint64_t) {
644 onFile((Context*)pcx, path, ft);
645 });
646}
647
648void DirectoryEntry::onDirectoryStart(Context* cx, std::wstring_view path)
649{

Callers

nothing calls this directly

Calls 7

ToWStringFunction · 0.85
forEachEntryMethod · 0.80
getFileMethod · 0.80
getIDMethod · 0.80
getNameMethod · 0.45
setFileSizeMethod · 0.45
getFileSizeMethod · 0.45

Tested by

no test coverage detected