|
| [WM20] fListFile does not work for iOS |
| Iniciado por guest, 31,oct. 2016 13:22 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 31,octubre 2016 - 13:22 |
Hello all,
For my iOS application I try to make some sort of file explorer (Gallery for pictures). It is basically the same application as an Android project, which I previously created.
For the Android project the fListFile() method does return a string with the different files in the stated directory. Nevertheless, in both the iOS emulator and an actual device this appears to be blank.
Did some of you encounter the same problem or did I forget something? If this is not the case, is there some work around method? My test code looks as follows: GnFotoiOS is string = fCurrentDir()+"/Gallerij/" //Basically: Documents/Gallerij/ IF NOT fDirectoryExist(GnFotoiOS) THEN fMakeDir(GnFotoiOS) Info(fDirectoryExist(GnFotoiOS)) //Results: 1 Info(fListFile(GnFotoiOS)) //Results: Nothing although there are files Info(fCreate(GnFotoiOS+"test.txt")) //Creates test files > Results: identifier (file is created) Info(fListFile(GnFotoiOS)) //Results: Nothing although there are files + test file Thanks in advance, Rik |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,octubre 2016 - 14:36 |
Hi
The real question is why it's working anywhere with that code. In fListFile, you are supposed to indicate the type of files you are looking for in your path (by example *.*, *.png, and so one)
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 31,octubre 2016 - 14:45 |
Hello Fabrice,
Thought it was just an optional parameter. It does function now, thank you very much!!
Regards, Rik |
| |
| |
| | | |
|
| | | | |
| | |
|