mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 09:14:48 -04:00
@@ -84,6 +84,9 @@ const vector<unique_ptr<FileEntry>> FileEntry::GetChilds() const
|
||||
FindClose(handle);
|
||||
#else
|
||||
DIR *handle = opendir(filePath.c_str());
|
||||
if (handle == nullptr) {
|
||||
return children;
|
||||
}
|
||||
struct dirent *entry;
|
||||
while ((entry = readdir(handle)) != nullptr) {
|
||||
string filename(entry->d_name);
|
||||
|
||||
Reference in New Issue
Block a user