syncthing/lib/model
Jakob Borg 61a182077f Clarify and correct handling of existing files/directories when pulling
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.
2015-08-15 15:29:59 +02:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
debug.go mv internal lib 2015-08-09 09:35:26 +02:00
deviceactivity_test.go mv internal lib 2015-08-09 09:35:26 +02:00
deviceactivity.go mv internal lib 2015-08-09 09:35:26 +02:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
folderstate.go mv internal lib 2015-08-09 09:35:26 +02:00
model_test.go mv internal lib 2015-08-09 09:35:26 +02:00
model.go Configurable home disk percentage, translations 2015-08-09 10:37:23 +02:00
progressemitter_test.go mv internal lib 2015-08-09 09:35:26 +02:00
progressemitter.go mv internal lib 2015-08-09 09:35:26 +02:00
queue_test.go mv internal lib 2015-08-09 09:35:26 +02:00
queue.go mv internal lib 2015-08-09 09:35:26 +02:00
rofolder.go mv internal lib 2015-08-09 09:35:26 +02:00
rwfolder_test.go mv internal lib 2015-08-09 09:35:26 +02:00
rwfolder.go Clarify and correct handling of existing files/directories when pulling 2015-08-15 15:29:59 +02:00
sharedpullerstate_test.go mv internal lib 2015-08-09 09:35:26 +02:00
sharedpullerstate.go mv internal lib 2015-08-09 09:35:26 +02:00
tempname_test.go mv internal lib 2015-08-09 09:35:26 +02:00
tempname.go mv internal lib 2015-08-09 09:35:26 +02:00
util.go mv internal lib 2015-08-09 09:35:26 +02:00