mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
61a182077f
This fixes a corner case I discovered in the symlink branch, where we unexpectedly succeed in "replacing" an entire non-empty directory tree with a file or symlink. This happens when archiving is in use, as we then just move the entire tree away into the archive. This is wrong as we should just archive files and fail on non-empty dirs in all cases. New handling first checks what the (old) thing is, and if it's a directory or symlink just does the delete, otherwise does conflict handling or archiving as appropriate. |
||
---|---|---|
.. | ||
auto | ||
beacon | ||
config | ||
db | ||
discover | ||
events | ||
fnmatch | ||
ignore | ||
model | ||
osutil | ||
rc | ||
scanner | ||
stats | ||
symlinks | ||
sync | ||
upgrade | ||
upnp | ||
versioner |