syncthing/lib/model
Matt Burke c2a5e180b8 Emit warning when sync could overwrite configuration
Overwriting configuration files is likely to happen if a
user syncs their home directories across computers. In this
case, the biggest risk is that all nodes will end up with
the same certificate and thus Device ID.

When the model prepares a folder for syncing, it checks to
see if the configuration files this instance is using are
getting synced. If the are getting synced, and they aren't
getting ignored, a warning is emitted. The model is used
so that when a new folder is added dynamically, a warning
is also emitted.

This will not prevent a user from shooting themselves in
the foot, and will not cover all cases (e.g. symlinks).
It should provide _something_ for many users in this
situation to go on, though.
2015-10-20 12:22:27 -04: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
connection.go Fix import paths 2015-09-22 19:38:46 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
deviceactivity_test.go Fix import paths 2015-09-22 19:38:46 +02:00
deviceactivity.go Fix import paths 2015-09-22 19:38:46 +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 Emit warning when sync could overwrite configuration 2015-10-20 12:22:27 -04:00
model.go Emit warning when sync could overwrite configuration 2015-10-20 12:22:27 -04:00
progressemitter_test.go mv internal lib 2015-08-09 09:35:26 +02:00
progressemitter.go Tests must use locking to avoid race (fixes #2394) 2015-10-20 08:51:31 +02:00
queue_test.go mv internal lib 2015-08-09 09:35:26 +02:00
queue.go Tests must use locking to avoid race (fixes #2394) 2015-10-20 08:51:31 +02:00
rofolder.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
rwfolder_test.go Emit warning when sync could overwrite configuration 2015-10-20 12:22:27 -04:00
rwfolder.go Allow limiting max conflicts (fixes #2282) 2015-10-16 19:26:38 +01:00
sharedpullerstate_test.go mv internal lib 2015-08-09 09:35:26 +02:00
sharedpullerstate.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +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