From 0b011b4af6bb2686db21d38974ee6befca72f7bc Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Thu, 26 Jan 2023 18:20:54 +0000 Subject: [PATCH] Can't sync Windows directories. --- vfs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vfs.go b/vfs.go index b8defb9..6bed8bc 100644 --- a/vfs.go +++ b/vfs.go @@ -8,6 +8,7 @@ import ( "math/rand" "os" "path/filepath" + "runtime" "syscall" "time" @@ -131,7 +132,7 @@ func vfsDelete(ctx context.Context, mod api.Module, pVfs, zPath, syncDir uint32) if err != nil { return uint32(IOERR_DELETE) } - if syncDir != 0 { + if runtime.GOOS != "windows" && syncDir != 0 { f, err := os.Open(filepath.Dir(path)) if err == nil { err = f.Sync()