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" "log"
"os" "os"
"path/filepath" "path/filepath"
"runtime"
"sort" "sort"
"strconv" "strconv"
sync "sync" sync "sync"
@ -634,7 +635,12 @@ func removeDirSync(dir string) error {
if err := os.RemoveAll(dir); err != nil { if err := os.RemoveAll(dir); err != nil {
return err 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 { func syncDir(dir string) error {

Loading…
Cancel
Save