1
0
Fork 0

Only sync directories on non-Windows OSes

Maybe this is causing the test failures.
master
Philip O'Toole 1 year ago
parent be68a51bc1
commit eaef1a251a

@ -8,6 +8,7 @@ import (
"log"
"os"
"path/filepath"
"runtime"
"sort"
"strconv"
sync "sync"
@ -634,7 +635,12 @@ func removeDirSync(dir string) error {
if err := os.RemoveAll(dir); err != nil {
return err
}
return syncDir(filepath.Dir(dir))
if runtime.GOOS != "windows" {
if err := syncDir(filepath.Dir(dir)); err != nil {
return err
}
}
return nil
}
func syncDir(dir string) error {

Loading…
Cancel
Save