Editing symlinks

Advertisement

heyesr
Joined:
Posts:
4

Editing symlinks

Hi,

When I have a symlink to a text file and I edit the symlink and save it - the link is overwritten with a new file - ie the link is not preserved.

Is there some configuration that I must do to make winscp preserve the link? This happens even with the WinSCP internal editor.

Thanks

Richard

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,624
Location:
Prague, Czechia

Re: Editing symlinks

What protocol are you using? 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.

Reply with quote

heyesr
Joined:
Posts:
4

Re: Editing symlinks

martin wrote:

What protocol are you using? Please attach a full session log file showing the problem (using the latest version of WinSCP).

That was it thank you - the protocol was set to SFTP instead of SCP. So I changed to SCPP and it works fine. Thank you.

Richard

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,624
Location:
Prague, Czechia

Re: Editing symlinks

heyesr wrote:

That was it thank you - the protocol was set to SFTP instead of SCP. So I changed to SCPP and it works fine. Thank you.
OK, but can you post a log file for SFTP anyway?

Reply with quote

heyesr
Joined:
Posts:
4

Log file

Hi,

I've found that it doesn't seem to be a protocol thing - I have two connections setup - one with a private key and one with a password - and it's only the private key connection that doesn't work properly.

Log file is attached.
  • __winsp-log.log (198.15 KB, Private file)
Description: WinSCP log file

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,624
Location:
Prague, Czechia

Re: Log file

heyesr wrote:

I've found that it doesn't seem to be a protocol thing - I have two connections setup - one with a private key and one with a password - and it's only the private key connection that doesn't work properly.
It actually seems to be related to "remote recycle bin", isn't it?
https://winscp.net/eng/docs/ui_login_recycle_bin

Reply with quote

heyesr
Joined:
Posts:
4

That appears to be it

Hi,

That appears to be it - I unchecked that box and it appears to be editing files and symlinks as expected.

Thanks.

Richard

Reply with quote

Advertisement

You can post new topics in this forum