| 15 | } |
| 16 | |
| 17 | static uint64_t getFileSizeInFolder(std::wstring_view path) |
| 18 | { |
| 19 | return std::accumulate( |
| 20 | std::filesystem::recursive_directory_iterator{path}, |
| 21 | std::filesystem::recursive_directory_iterator{}, |
| 22 | 0ull, |
| 23 | [](uint64_t lhs, std::filesystem::directory_entry p) |
| 24 | { |
| 25 | return lhs + std::filesystem::file_size(p); |
| 26 | } |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | uint64_t TaskFile::GetSizeOfPath(std::wstring_view path) |
| 31 | { |