You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was some code that claimed to ignore symlinks, but:
- It would run *after* recursive directory copying, so any symlinks to
directories would still be copied (potentially creating a destination
directory that is a lot bigger than the original)
- It checked for the symlink bit in the result of Stat(), but that
resolves the symlink and returns the mode bits of the target, so that
code would never fire.
This fixes both problems by moving the check for symlinks up, and using
Lstat() instead of Stat(), so symlinks are ignored as intended.
0 commit comments