Hi EPIC,
I want to get a list of files from the directory defined at run time. I use UE 4.4.1.
Here is my test-code:
IPlatformFile& f = FPlatformFileManager::Get().GetPlatformFile();
TArray<FString> DirectoriesToSkip;
TArray<FString> DirectoriesToNotRecurse;
FLocalTimestampDirectoryVisitor x(f, DirectoriesToSkip, DirectoriesToNotRecurse, false);
#if PLATFORM_ANDROID
BaseDirectory = TEXT("/mnt/sdcard/DCIM/xxxx");
#else
BaseDirectory = TEXT("c:\\support\\xxxx");
#endif
f.IterateDirectory(*BaseDirectory, x);
// x.FileTimes.Num() --> ALWAYS ZERO FOR ANDROID PLATFORM
I put files in both directories (for Windows and Android). It works on Windows platform as expected.
Why on Android platform I always have ZERO number of files?
What is the problem here? Can anybody help me?
Can EPIC confirm I can read sub-directories (and files in those sub-folders) of “/mnt/sdcard/DCIM” folder?
Thanks in advance.