Need Help with see the files on diretory on Android

Hi Guys
i have try to read photos from directorys on Android device.
So i check the directory “/storage/sdcard0/” its true
When “/storage/sdcard0/TesteFolder” or “/storage/sdcard0/DCIM/Camera/” its false

here is my code to teste if the directory exist

 FString C1 = "/storage/sdcard0/";
 FString Found = "No";
 IFileManager& FileManager = IFileManager::Get();
 IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
	if (FileManager.DirectoryExists(*C1)){
		Found = "Yes: " + C1;
	}

and in mainfest i put the permission

It seems to me it’s like I have not allowed to see some folders =/

Nobody? =/

It seems that FileManager.DirectoryExists is not working propery on Android platform.

Try code below instead.

struct stat FileInfo;
if (stat(TCHAR_TO_UTF8(*PATH_TO_CHECK), &FileInfo) != -1)
{
	if (S_ISDIR(FileInfo.st_mode))  { 
	}
}

What’s the header for S_ISDIR?