Topic "Local files are read only after "synchronize local...""

Author Message
Petr Nowak

Guest


Local files are read only after "synchronize local...". How to avoid this ?

Code:
option batch on
option confirm off
option synchdelete on
echo on
open pnowak@WEBtest
chmod 666 *.*
option transfer binary
synchronize local d:\BackupsWEBtest\ \Zalohy\
close
exit
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Sorry, I do not understand what is the problem. Please try again.
_________________
Martin Prikryl
Guest




I use WINscp to synchronize files from remote to local (via script, synchronize command, see above). Remote files are readwrite. Local files are readonly after synchronization. Why ? Does WINscp set readonly attribute on synchronized local files ? How to avoid this behaviour ?
Read only attribute is a reason why synchronization is not able to rewrite old local files with new remote one, during next synchronization. I'm not able to find how to avoid this ...
If I remove manually readonly attribute in local before start of new synchronization, all is correct and WINscp makes its job and transfer changed files.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Quote:
I use WINscp to synchronize files from remote to local (via script, synchronize command, see above). Remote files are readwrite. Local files are readonly after synchronization. Why ? Does WINscp set readonly attribute on synchronized local files ? How to avoid this behaviour ?

WinSCP sets readonly attribute for files that are readonly on remote side. I guess I should turn this feature off by default.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License