test: Updates for fs/osutil package changes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user