Revert "Case insensitive renames, part 1"

This commit is contained in:
Jakob Borg
2015-09-30 21:40:04 +02:00
parent 460cb19839
commit be2ca0ea22
3 changed files with 1 additions and 168 deletions

View File

@@ -1370,7 +1370,6 @@ nextSub:
// TODO: We should limit the Have scanning to start at sub
seenPrefix := false
var iterError error
css := osutil.NewCachedCaseSensitiveStat(folderCfg.Path())
fs.WithHaveTruncated(protocol.LocalDeviceID, func(fi db.FileIntf) bool {
f := fi.(db.FileInfoTruncated)
hasPrefix := len(subs) == 0
@@ -1414,7 +1413,7 @@ nextSub:
Version: f.Version, // The file is still the same, so don't bump version
}
batch = append(batch, nf)
} else if _, err := css.Lstat(filepath.Join(folderCfg.Path(), f.Name)); err != nil {
} else if _, err := osutil.Lstat(filepath.Join(folderCfg.Path(), f.Name)); err != nil {
// File has been deleted.
// We don't specifically verify that the error is