Page 1 of 1

Displaying The Contents Of A Folder.

Posted: Tue Sep 10, 2024 1:01 am
by Googie85
Hii Guys!

I am having some issues viewing the contents of a folder on Android. I have the correct folder path and it sets it to the defaultpath correctly. However, I can't display the files with the following code:

Code: Select all

   on mouseDown
   set the defaultFolder to "/storage/emulated/0/Uploads"
   put the files into temp
   answer temp
   end mouseDown
It seems simple but I am getting no results. Any ideas?

Many Thanks,

Googie.

Edit: I am 100% sure that I have got the folder path correct.

Re: Displaying The Contents Of A Folder.

Posted: Tue Sep 10, 2024 1:24 am
by FourthWorld
Check "the result" after all I/O for potential errors.

viewtopic.php?f=104&t=36903&p=214210#p214210

Re: Displaying The Contents Of A Folder.

Posted: Tue Sep 10, 2024 7:51 am
by SparkOut
Pretty likely this will be a sandboxing issue. Is the "Uploads" folder one that's created in your LiveCode app?
If so, use specialFolderPath to create the reference to it rather than the hardcoded path. If not, you are probably out of luck.