Automatically fix file name normalization errors (fixes #430)

This commit is contained in:
Jakob Borg
2015-03-18 23:54:50 +01:00
parent 75523556e8
commit 8311162be3
4 changed files with 168 additions and 11 deletions

View File

@@ -1139,15 +1139,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)