files() and folders()

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
MaxV
Posts: 1574
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

files() and folders()

Post by MaxV » Tue Feb 02, 2016 4:49 pm

At the present files() and folders() functions require to move the default folder.
This create me some problems, because I can't use at the same time many operation on different folders.
I wish that in the future I can use this form:

put files("/home/max")

this way I don't need to change the default folder, risking to create a mess. :mrgreen:
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6186
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: files() and folders()

Post by dunbarx » Tue Feb 02, 2016 5:08 pm

Max.
require to move the default folder.
Can you explain what you mean? Each of these functions returns a list of files or folders in the default folder. What is "moving"?

Craig Newman

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: files() and folders()

Post by Klaus » Tue Feb 02, 2016 5:11 pm

Hi Max,

yes, makes a lot of sense, please post a feature request here: http://quality.runrev.com
The time is right for this, they are currently HIGHLY active to make LC 8 the best LC EVER! :D

And maybe also propose to create something like: detailedFileInfo(path/to/file)
Which otherwise needs to be extracted from the "long files", which has the same overhead like above.
Know what I mean?


Best

Klaus

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: files() and folders()

Post by Klaus » Tue Feb 02, 2016 5:12 pm

Hi Craig,

with "moving", Max means to CHANGE the defaultfolder! 8)


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6186
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: files() and folders()

Post by dunbarx » Tue Feb 02, 2016 6:56 pm

Ah.

To specify (change) the defaultFolder before one can access the files desired inside that folder.

Craig

Post Reply

Return to “Feature Requests”