Thanks.
It works with SFTP connection and
It works with SFTP connection and
-permissions
option.
-permissions
option.
-permissions
works for SFTP and SCP only, as the documentation says:
SITE CHMOD ...
) to change the permissions for each of them (via Session.ExecuteCommand
, as the .NET assembly does not expose the chmod
functionality directly).
-permission
didn't work with he FTP connection?
-permissions
but it doesn't work, I guess it's because I use FTP and not SFTP?
synchronize
command change permissions of the synchronized files:
synchronize remote ... -permissions=644
755
).
chmod 644
on all files with extensions *.pdf
for example: it works but it take long time because it change the permissions for all files: the new ones and the olders who already have the good permissions.