Automatically fix file name normalization errors (fixes #430)

This commit is contained in:
Jakob Borg
2015-03-22 08:47:34 +01:00
parent a5de1acb46
commit 2bd11ca4e3
4 changed files with 169 additions and 11 deletions
+10 -9
View File
@@ -1128,15 +1128,16 @@ func (m *Model) ScanFolderSub(folder, sub string) error {
}
w := &scanner.Walker{
Dir: folderCfg.Path,
Sub: sub,
Matcher: ignores,
BlockSize: protocol.BlockSize,
TempNamer: defTempNamer,
TempLifetime: time.Duration(m.cfg.Options().KeepTemporariesH) * time.Hour,
CurrentFiler: cFiler{m, folder},
IgnorePerms: folderCfg.IgnorePerms,
Hashers: folderCfg.Hashers,
Dir: folderCfg.Path,
Sub: sub,
Matcher: ignores,
BlockSize: protocol.BlockSize,
TempNamer: defTempNamer,
TempLifetime: time.Duration(m.cfg.Options().KeepTemporariesH) * time.Hour,
CurrentFiler: cFiler{m, folder},
IgnorePerms: folderCfg.IgnorePerms,
AutoNormalize: folderCfg.AutoNormalize,
Hashers: folderCfg.Hashers,
}
runner.setState(FolderScanning)