sshfs-win icon indicating copy to clipboard operation
sshfs-win copied to clipboard

can't visit the directory which created by ln -s command

Open Allsochen opened this issue 6 years ago • 5 comments

can't visit the directory which created by ln -s command

Allsochen avatar Feb 24 '20 14:02 Allsochen

The ln -s command creates symbolic links and not directories. I am assuming that you created a symlink to a directory on a UNIX system (not Cygwin) using ln -s.

If the symlink points to a target outside the SSHFS file system, unfortunately this cannot be made to work.

billziss-gh avatar Feb 24 '20 14:02 billziss-gh

Can comfirm this bug.

Example:

ln -s /home/username/path/to/notes/folder/that/i/need/for/work/and/that/are/really/important /home/username/important then on the Windows side, new fileshare to \sshfs\user@ip\important

That doesn't work.

Brutus11111 avatar Dec 08 '20 13:12 Brutus11111

Agreed, I use pretty heavy symlinking and get this error trying to go to the links.
image

phwelo avatar Nov 28 '21 03:11 phwelo

There were a number of symlink issues that were resolved in WinFsp 2022 Beta4. Please make sure to try with that version.

If you are running SSHFS-Win from the command line please make sure to always use the -orellinks option as well.

billziss-gh avatar Nov 29 '21 12:11 billziss-gh

The bug is still present in WinFsp 2023 version. Resolved by compiling the sshfs-win with the follow_symlinks argument baked in.

It would be great if we could set this flag via registry, so we can choose a wanted behavior.

dajuric avatar May 02 '23 14:05 dajuric