tsNet docs?

Bob Sneidar bobsneidar at iotecdigital.com
Tue Apr 4 13:51:52 EDT 2017


I have a need to allow a user to select the folder they want to save filled form to. I want the default to be ~/Documents/Installs but of course that folder may not be created yet. So what I do is I create the folder before popping the selection dialog, then if the user selects another folder, I delete the temporary one.

It's ugly, but it works.

Bob S


On Apr 4, 2017, at 10:28 , Richard Gaskin via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

Hello Charles -

Since I wrote my earlier post v8.1.4rc1 has been released, so I tried there with better results for some things, and noted all of my findings with both v9 and v8.1.4 for both SFTP and FTPS here:
http://quality.livecode.com/show_bug.cgi?id=19525

Question:  libURL has a VERY convenient feature in which if you're uploading to a path that includes a folder that doesn't yet exist, it'll create that folder for you.

If tsNet doesn't provide that, is there any better method for doing that than obtaining a list of directories for even folder level and explicitly creating one if not found?

I can write code for that, and probably cache results as I go to minimize the number of times I need to do that, but it would sure be more convenient to discover that there's some means of getting that libURL convenience in tsNet.

Thanks -

--
Richard Gaskin




More information about the use-livecode mailing list