Deleted Files

Richard Gaskin ambassador at fourthworld.com
Wed Jun 2 19:28:23 EDT 2010


Dan Friedman wrote:

 > How would I rename the file on a remote server?

libURL does it's magic with FTP, and FTP does its magic with a set of 
commands available for the protocol, including two for renaming files:

<http://www.nsftools.com/tips/RawFTP.htm#RNFR>


Thankfully, Dave Cragg opens the door to use any of them with the libURL 
call "libUrlFtpCommand" - e.g., to rename a file:

   get  libUrlFtpCommand("RNFR mydomain.com/file.dat",\
        "myserver.com","myFtpLogin","myPassword")

   get  libUrlFtpCommand("RNTO mycomain.com/newname.dat",\
        "myserver.com","myFtpLogin","myPassword")


Wonderfully detailed notes on everything in libURL here:
<http://www.lacscentre.com/liburl/liburldoc.html>

--
  Richard Gaskin
  Fourth World
  Rev training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com
  revJournal blog: http://revjournal.com/blog.irv



More information about the use-livecode mailing list