Warn when duplicating remote symlinks?
I'm very grateful for the existence of WinSCP 8-)
However, today I got burned trying to backup a symlinked file via "Duplicate" (from the remote file's context menu). I expected this to work like a Linux command-line
I suggest that "Duplicate" offer an option whether to copy symlinks as symlinks, or at least a warning that this may not be what the user expects. (Copying a shortcut on Windows will copy the shortcut, so I it's not obvious what the default should be. However, I think I'm not alone in viewing Duplicate as synonymous with
However, today I got burned trying to backup a symlinked file via "Duplicate" (from the remote file's context menu). I expected this to work like a Linux command-line
cp
, which copies the contents of the symlink's target into a new file by default. It seems "Duplicate" works like cp --no-dereference
, just making another symlink. Thus, changes to the duplicate affect the original file. So now I have no backup and two symlinks to a broken revision 8-P
I suggest that "Duplicate" offer an option whether to copy symlinks as symlinks, or at least a warning that this may not be what the user expects. (Copying a shortcut on Windows will copy the shortcut, so I it's not obvious what the default should be. However, I think I'm not alone in viewing Duplicate as synonymous with
cp
.)