rclone/cmd
Nick Craig-Wood a4bc4daf30 mounttest: fix unreliable tests on Windows CI
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.
2020-01-09 11:11:49 +00:00
..
about cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
all build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
authorize config: do not open browser on headless if google fs 2019-10-30 14:12:42 +00:00
cachestats build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
cat cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
check cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
cleanup cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
cmount mount,cmount: make sure we call unmount when exiting 2019-11-11 22:08:52 +00:00
config cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
copy cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
copyto cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
copyurl cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
cryptcheck Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00
cryptdecode cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
dbhashsum cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
dedupe cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
delete cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
deletefile cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
genautocomplete build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
gendocs cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
hashsum Remove backend dependency from fs/hash 2019-10-01 16:29:58 +01:00
info cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
link cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
listremotes cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
ls cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
lsd cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
lsf cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
lsjson cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
memtest cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
mkdir cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
mount mount: don't build on go1.10 as bazil/fuse no longer supports it 2020-01-08 08:44:02 +00:00
mountlib mounttest: fix unreliable tests on Windows CI 2020-01-09 11:11:49 +00:00
move cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
moveto cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
ncdu cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
obscure cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
purge cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rc cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
rcat cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rcd cmd/rcd: Address ZipSlip vulnerability 2019-09-29 11:14:21 +01:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdirs build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
serve Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00
settier cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
sha1sum cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
size cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
sync cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
touch cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
tree cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
version cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
cmd.go Fix error counter - fixes #3650 2019-11-18 14:13:02 +00:00
help.go Fix completion with an encrypted config 2019-11-29 14:48:12 +00:00
progress.go lib/terminal: factor from cmd/progress, swap Azure/go-ansiterm for mattn/go-colorable 2019-10-08 19:59:47 +01:00
siginfo_darwin.go cmd: fix up stats printing on macOS after accounting change 2019-07-28 20:38:20 +01:00
siginfo_others.go cmd: add siginfo handler 2018-06-02 17:35:13 +01:00