bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
3.9k stars 225 forks source link

Help `Unix.symlink` create Windows dir symlinks #946

Closed tleedjarv closed 1 year ago

tleedjarv commented 1 year ago

Windows differentiates between file symlinks and directory symlinks. Unison currently doesn't... The only reason why Windows directory symlinks work at all, is that Unix.symlink has a heuristic which tries to detect symlink type by stat'ing the target. For this to work with relative paths, working dir must be changed before creating the symlink.

This is a slight improvement for #942 but it is not a complete fix.