syncthing/lib/model
Jakob Borg 9323f0faf8 lib/model: Refactor CheckFolderHealth into separate methods
While attempting to fix #2782 I thought the problem was the
CheckFolderHealth method, so I cleaned it up. That turned out not to be
the case, but I think this is better anyhow.

It also moves the "create folder and marker if the folder was empty in
the index" code to StartFolder where I think it makes better sense.

This is covered by a number of existing tests.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3343
2016-06-26 10:07:27 +00: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 Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
deviceactivity_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
deviceactivity.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
devicedownloadstate_test.go lib/model: Test should pass go vet inspections 2016-04-15 11:41:18 +00:00
devicedownloadstate.go lib/model: Don't deadlock when returning temp index block counts 2016-05-26 09:16:08 +00:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
folder.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderscan.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderstate.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
model_test.go lib/model, lib/scanner: Silence vet warnings 2016-06-20 21:00:39 +00:00
model.go lib/model: Refactor CheckFolderHealth into separate methods 2016-06-26 10:07:27 +00:00
progressemitter_test.go lib/model: Track puller creation times (fixes #3145) 2016-05-22 10:16:09 +00:00
progressemitter.go all: Clean up dead code 2016-04-22 21:15:36 +00:00
queue_test.go tests: messagediff argument order should be expected, actual 2016-03-17 08:03:29 +01:00
queue.go Tests must use locking to avoid race (fixes #2394) 2015-10-20 08:51:31 +02:00
rofolder.go lib/model: Use factories for creating folders 2016-05-04 10:47:33 +00:00
rwfolder_test.go lib/model: Emit LocalDiskUpdated events on detecting local changes 2016-05-19 00:19:26 +00:00
rwfolder.go lib/model: Make the (?d) prefix actually work 2016-05-28 04:17:34 +00:00
sentdownloadstate.go lib/model: Track puller creation times (fixes #3145) 2016-05-22 10:16:09 +00:00
sharedpullerstate_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
sharedpullerstate.go lib/model: Track puller creation times (fixes #3145) 2016-05-22 10:16:09 +00: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