Topic "Syncronize & read-only attribute"

Author Message
[View user's profile]

Joined: 2009-07-27
Posts: 1
Location: Milano
I Martin,
I'm trying to synchronize a local folder to a remote one, so that remote changes reflects to local folder.

The script is something like

option batch on
option confirm off
option batch abort
OPEN session_name
cd remote_dir
synchronize local local_dir -criteria=both -speed=100

I notice tha if a file changes on the remote folder and I re-run the script I get an error like:

error trnasferring file '/remote_dir/aaa.txt'
unable to open file 'd:\local_dir\aaa.txt'
copy file local side fail.
PORT command successful

If I check the rights on the local copy I see that the read-only attribute is set.
Is there a way to force the copy not to preserve the read-only attribute? (I know this is possible via GUI, but I don't find it in the cli reference)

Thanks in advance.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License