1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

fs: Clone(): fsync the source

This commit is contained in:
Ivan Shapovalov 2024-12-05 17:41:45 +04:00
parent ed13a20eef
commit 85de133d57

View file

@ -153,5 +153,6 @@ func Clone(srcName, destName string) (cloned bool, err error) {
_ = dest.Close()
}()
_ = src.Sync()
return doClone(src, dest)
}