This commit is contained in:
Alexey
2024-02-07 11:51:34 +03:00
parent 6b29728c46
commit b81fc6b3c7
2 changed files with 3 additions and 6 deletions

View File

@ -586,11 +586,7 @@ namespace NSDirectory
int GetFilesCount(const std::wstring& path, const bool& recursive)
{
std::vector<std::wstring> arrFiles = NSDirectory::GetFiles(path, recursive);
#if defined(_WIN32) || defined (_WIN64)
return (int)arrFiles.size();
#endif
return (int)arrFiles.size() + 1;
// ???
}
bool PathIsDirectory(const std::wstring& pathName)
{