Remove temporaries during scan (fixes #1092)

This commit is contained in:
Audrius Butkevicius
2014-12-09 23:58:58 +00:00
parent 691f0f4845
commit 7a1aaaf5c4
4 changed files with 22 additions and 26 deletions

View File

@@ -1065,6 +1065,7 @@ func (m *Model) ScanFolderSub(folder, sub string) error {
Matcher: ignores,
BlockSize: protocol.BlockSize,
TempNamer: defTempNamer,
TempLifetime: time.Duration(m.cfg.Options().KeepTemporariesH) * time.Hour,
CurrentFiler: cFiler{m, folder},
IgnorePerms: m.folderCfgs[folder].IgnorePerms,
}