Displaying The Contents Of A Folder.

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 226
Joined: Tue Aug 05, 2014 10:07 am

Displaying The Contents Of A Folder.

Post by Googie85 » Tue Sep 10, 2024 1:01 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Displaying The Contents Of A Folder.

Post by FourthWorld » Tue Sep 10, 2024 1:24 am

Check "the result" after all I/O for potential errors.

viewtopic.php?f=104&t=36903&p=214210#p214210
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Displaying The Contents Of A Folder.

Post by SparkOut » Tue Sep 10, 2024 7:51 am

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.

Post Reply