MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / getFileSizeInFolder

Function getFileSizeInFolder

FastCopy/TaskFile.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17static 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
30uint64_t TaskFile::GetSizeOfPath(std::wstring_view path)
31{

Callers 1

GetSizeOfPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected