1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-03 09:03:50 +00:00

vfs,local: Log an ERROR if we fail to set the file to be sparse

See: https://forum.rclone.org/t/rclone-1-53-release/18880/73
This commit is contained in:
Nick Craig-Wood
2020-09-11 15:34:58 +01:00
parent 937dd7fa1f
commit 0f895c0697
3 changed files with 8 additions and 3 deletions

View File

@@ -1213,7 +1213,7 @@ func (f *Fs) OpenWriterAt(ctx context.Context, remote string, size int64) (fs.Wr
// Set the file to be a sparse file (important on Windows)
err = file.SetSparse(out)
if err != nil {
fs.Debugf(o, "Failed to set sparse: %v", err)
fs.Errorf(o, "Failed to set sparse: %v", err)
}
}