List Files and Folders 2

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

List Files and Folders 2

Post by marksmithhfx » Thu Aug 11, 2011 2:57 am

Here is a little app you might be interested in....

Designed as a simple file browser for mobile devices. Allows you to list files and folders in SpecialFolderPath directories. 'Write' option lets you test writing to a specialfolderpath directory. Implemented as a one-card, one-script stack so you can easily copy it into other stacks.

Uploaded to User Samples in RevOnline. Search for "smith" in the All or Utility section (or, just download it here). If anyone has Android working and can test if for me that would be much appreciated.

Cheers,

-- Mark
Attachments
List Files and Folders 2.livecode.zip
(103.62 KiB) Downloaded 269 times
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: List Files and Folders 2

Post by marksmithhfx » Fri Aug 12, 2011 12:14 am

Just a quick note to say I've successfully tested it on Windows/Mac/iPhone but I don't have an Android Sim working yet, or an iPad so I wasn't able to test it on those devices. The tricky thing is it looks for ".." as the start of the root folder. That works ok on Macs, iPhones and Windows but I have no idea if it will work on Android or the iPad. The key to knowing is to see if it lists the files in the root directory.

Other limitation is it is not recursive... it only lists files at the root level, or in root level folders (ie. one level deep, or is that two....?). I am happy to have anyone improve on whats there.

Cheers,

-- Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

Post Reply