FTP queries

Sarah Reichelt sarahr at genesearch.com.au
Mon Jun 21 22:18:15 EDT 2004


Thanks Frank, this was the sort of thing I needed.
Cheers,
Sarah

> Should work fine.  Just upload the new file with .new at the end of 
> the name, check the length, and if it looks good, do the rename.
>
> Here's my rename code.  The PWD is there from the debugging I was 
> doing.
>
>   put libURLftpCommand("PWD", LFtpServer, LFtpUserName, 
> LFtpUserPassword) into theResult1
>   put libURLftpCommand("DELE " & renameToFile, LFtpServer, 
> LFtpUserName, LFtpUserPassword) into theResult2
>   put libURLftpCommand("RNFR " & renameFromFile, LFtpServer, 
> LFtpUserName, LFtpUserPassword) into theResult3
>   put libURLftpCommand("RNTO " & renameToFile, LFtpServer, 
> LFtpUserName, LFtpUserPassword) into theResult4
>   put libURLftpCommand("DELE " & renameFromFile, LFtpServer, 
> LFtpUserName, LFtpUserPassword) into theResult5
>
> -- Frank
>



More information about the use-livecode mailing list