tsNet docs?

Richard Gaskin ambassador at fourthworld.com
Tue Apr 4 15:10:04 EDT 2017


Bob Sneidar wrote:

 > On Apr 4, 2017, at 10:28 , Richard Gaskin wrote:
...
 >> 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 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.

Easy enough to do locally, but in this case I need to do it on a server, 
and via FTP commands.

And worse, I may need to do it hundreds of times.

I can get the list of folders in a server directly via tsNet's function 
for that, and can use the relevant FTP commands to create folders in the 
path I need as I go.

But beyond the time it would add to write all that stuff I've become 
accustomed just having happen automatically with libURL, I'm also 
concerned about the additional time required for all those multiple 
calls to the server to make those directories so that I can eventually 
get back to just uploading files into them.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list