Creating a folder on FTP Server
Jeanne A. E. DeVoto
jeanne at runrev.com
Sun Oct 6 01:16:00 CDT 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:firstname.lastname@example.org/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:email@example.com/newdir/dummy"
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
More information about the use-livecode