MV via ftp (moving files around on a remote server)

Sannyasin Sivakatirswami katir at hindu.org
Tue Oct 15 15:00:00 EDT 2002


Dave, thanks. studied the RFC's,

Right, MV doesn't appear to be a standard FTP command,
But RNFR and RNTO work great!

put "RNFR /public_html/transcripts/hold/9-12-02.txt" into oldPath
put "RNTO /public_html/transcripts/Used--discard/9-12-02.txt" into 
newPath
get libUrlFtpCommand(oldPath,"mydomain.org","myName","myPassword")
get libUrlFtpCommand(newPath,"mydomain.org","myName","myPassword")

# the above two commands must be run in immediate succession

answer it

# returns "RNTO command successful"
# effectively moves the file from one directory to another.

The above could be a useful addition to your example syntax for that 
command in the documentation.

Himalayan Academy Publications
Sannyasin Sivakatirswami
katir at hindu.org
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org




More information about the use-livecode mailing list