Creating a folder on FTP Server
Jeanne A. E. DeVoto
jeanne at runrev.com
Sat Oct 5 21:16:00 EDT 2002
At 9:16 AM -0700 10/5/2002, Mac Dude wrote:
>Knowing nothing about FTP, what command do I send with the new LibURL
>internet library to create a new folder on an FTP server? I'm assuming
>that there's no built in Transcript way to do this, right? Thanks!
It's not directly supported just yet (assuming you're working with 1.1.1),
but if you upload a file to a nonexistent FTP directory, the directory is
created for you, so you can use that as a workaround:
-- create an empty file in the nonexistent directory:
put empty into URL "ftp://name:password@example.com/newdir/dummy"
-- this creates the directory and the file in it. Now delete the
-- unwanted empty file to leave just the new directory:
delete URL "ftp://name:password@example.com/newdir/dummy"
--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/
More information about the use-livecode
mailing list