I want to use SYNC(DOWNLOAD_DELETE) command but i've got a trouble with uploaded temporary file :
- On the first server : i do not want to modified remote_dir : do not add .tmp file on it
- On the second one : i do not have write permission on remote_dir (read only) so my script return me :
- On the first server : i do not want to modified remote_dir : do not add .tmp file on it
- On the second one : i do not have write permission on remote_dir (read only) so my script return me :
Uploading temporary file to calculate server-client clock time difference.Any idea to bypass "Uploading temporary file" ?
***** SYNC Error 550: Cannot upload temporary file. The server said: Permission denied
On the first server : i do not want to modified remote_dir : do not add .tmp file on itThe temp file uploaded to calculate the clock time difference (and do the sync) is automatically deleted. Could you post the output of the transfer to see what went wrong?
If you are concerned about privacy you can send me this by email.
On the second one : i do not have write permission on remote_dir (read only) so my script return me :In this case you need to set your time differnce manually before using SYNC. For example:
[scriptftp="set_time_diff.ftp"]# Connect to FTP server
OPENHOST("ftp.myhost.com","myuser","mypassword")
# Synchronize a local directory with this FTP site.
# The time difference needs to be set manually because
# we do not have write permissions on the FTP
# server.
SETCLOCKDIFF(3600)
SYNC("C:\accounting","/accounting",DOWNLOAD,SUBDIRS)
# Close connection
CLOSEHOST[/ScriptFTP]
liked Script FTP? Try our other product Email Parser
It works ! Thanks !