U
Size: a a a
U
A
U
U
C
U
vector< string > listFile(string const fullPath) {
filesystem::path path(fullPath);
vector< string > result;
if (filesystem::is_directory(fullPath + "\\*")) {
for (filesystem::recursive_directory_iterator it(fullPath), end; it != end; ++it) {
path = *it;
result.push_back(path.string());
}
return result;
}
else
{
wear::loging::error(static_cast<string>(fullPath + " Is Not Directory"));
return vector<string>{};
}
}
A
U
K
K
U
U
K
U
C
for (filesystem::recursive_directory_iterator it(fullPath), end; it != end; ++it)
K
K
U
vector< string > listFile(string const fullPath) {
filesystem::path path(fullPath);
vector< string > result;
if (filesystem::is_directory(fullPath)) {
for (auto& flist: filesystem::directory_iterator(fullPath)) {
path = flist;
result.push_back(path.string());
}
return result;
}
else
{
wear::loging::error(static_cast<string>(fullPath + " Is Not Directory"));
return vector<string>{};
}
}