TArray<FString> output;
output.Empty();
if (FPaths::DirectoryExists(Directory))
{
//IFileManager::Get().FindFiles(output, *Directory, true, true);
FFileManagerGeneric::Get().FindFiles(output,*Directory, true, true);
for (int i = 0; i < output.Num(); i++)
{
print(output[i]);
}
}
return output;
i try to get a list of files inside some folder but this to function just return me the list of folders but not files, is a bug or something? i on 4.7. any suggestions?
well the documentation about dont say nothing especial, i add a FString from my directory + “.ext” wildcard, in this case search for .png images, then the for loop just fix the Absolute path for each. nicely!!