| 625 | }; |
| 626 | |
| 627 | void 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 | |
| 648 | void DirectoryEntry::onDirectoryStart(Context* cx, std::wstring_view path) |
| 649 | { |
nothing calls this directly
no test coverage detected