mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +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. |
||
---|---|---|
.. | ||
testdata | ||
.gitignore | ||
debug.go | ||
deviceactivity_test.go | ||
deviceactivity.go | ||
doc.go | ||
folderstate.go | ||
model_test.go | ||
model.go | ||
progressemitter_test.go | ||
progressemitter.go | ||
queue_test.go | ||
queue.go | ||
rofolder.go | ||
rwfolder_test.go | ||
rwfolder.go | ||
sharedpullerstate_test.go | ||
sharedpullerstate.go | ||
tempname_test.go | ||
tempname.go | ||
util.go |