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

Function getNumFilesInFolder

FastCopy/TaskFile.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <numeric>
8
9static int32_t getNumFilesInFolder(std::wstring_view path)
10{
11 return std::distance(
12 std::filesystem::recursive_directory_iterator{ path },
13 std::filesystem::recursive_directory_iterator{}
14 );
15}
16
17static uint64_t getFileSizeInFolder(std::wstring_view path)
18{

Callers 1

GetNumFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected