test: Updates for fs/osutil package changes

This commit is contained in:
Jakob Borg
2017-11-05 10:05:18 +01:00
parent d7d45d8092
commit 72c5f2e5c6
6 changed files with 28 additions and 29 deletions

View File

@@ -26,7 +26,6 @@ import (
"time"
"unicode"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/rc"
)
@@ -188,7 +187,7 @@ func alterFiles(dir string) error {
}
newPath := filepath.Join(filepath.Dir(path), string(base))
if newPath != path {
return osutil.TryRename(path, newPath)
return os.Rename(path, newPath)
}
/*
@@ -277,7 +276,7 @@ func (i *inifiteReader) Read(bs []byte) (int, error) {
// rm -rf
func removeAll(dirs ...string) error {
for _, dir := range dirs {
files, err := osutil.Glob(dir)
files, err := filepath.Glob(dir)
if err != nil {
return err
}