Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Keep permissions of overwritten file when moving to trash

Thanks for your report.
I have sent you an email with a debug version of WinSCP.
Guest

Re: Keep permissions of overwritten file when moving to trash

While I am not registered, please use attached one.
martin

Re: Keep permissions of overwritten file when moving to trash

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Libik

Re: Keep permissions of overwritten file when moving to trash

Attached.
martin

Re: Keep permissions of overwritten file when moving to trash

Post a log file with the binary mode please.
Guest

Re: Keep permissions of overwritten file when moving to trash

Binary mode didn't help.
martin

Re: Keep permissions of overwritten file when moving to trash

Thanks for the log.

It's the ascii mode that (incorrectly) prevents WinSCP from restoring the permissions. Turn it off, if possible. I'll look into this.
Libik

Re: Keep permissions of overwritten file when moving to trash

Here it comes.
Moved file in trash preservers its permissions while the new one has 0644
martin

Re: Keep permissions of overwritten file when moving to trash

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Libik

Keep permissions of overwritten file when moving to trash

Hi,

In certain directory I have file premissions set to 0755. Using remote trash the file to be ovewritten is moved to trash and new file is stored, however it has 0644 but I want to keep the same permission 0755. Is that somehow possible?

Thanks!