1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

vfs: rename Fsync to Sync and implement Sync on Node and Handle

This commit is contained in:
Nick Craig-Wood
2017-11-18 15:48:49 +00:00
parent eb3415db50
commit b4083b4371
10 changed files with 40 additions and 10 deletions

View File

@@ -65,6 +65,10 @@ func TestWriteFileHandleMethods(t *testing.T) {
_, err = fh.ReadAt(buf, 0)
assert.Equal(t, EPERM, err)
// Sync
err = fh.Sync()
assert.NoError(t, err)
// Close
assert.NoError(t, fh.Close())