mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:25:03 +01:00
a4bc4daf30
The failure is this which is not reproducable locally, only on the CI servers. --- FAIL: TestMount/CacheMode=minimal/TestWriteFileOverwrite (1.01s) fs.go:351: Error Trace: fs.go:351 write.go:65 Error: Received unexpected error: open E:testwrite: The request could not be performed because of an I/O device error. Test: TestMount/CacheMode=minimal/TestWriteFileOverwrite The corresponding ERROR from the log is this: ERROR : IO error: truncate C:\Users\runneradmin\AppData\Local\rclone\vfs\local\C\Users\RUNNER~1\AppData\Local\Temp\rclone298719627\testwrite: Access is denied. Instead of using ioutil.WriteFile this fix uses an equivalent based on rclone's lib/file which doesn't set the exclusive flag on Windows. This allows files to be deleted that are open. It also deletes existing files if an error is received and retries. |
||
---|---|---|
.. | ||
dir.go | ||
edge_cases.go | ||
file.go | ||
fs.go | ||
read_non_unix.go | ||
read_unix.go | ||
read.go | ||
write_non_unix.go | ||
write_unix.go | ||
write.go |