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
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to