PhpGt/Sync

Symlink improvements

Closed this issue · 0 comments

g105b commented

After using symlinks for a while, I have identified the following issues:

  • Relative paths don't work when there are different parent directories - use realpath
  • PHP Warning: symlink(): File exists - no need to symlink if it already exists (unchanged)
  • If the origin directory changes, and the symlink already exists, it should be removed first (or re-linked, if possible)