rclone/lib/file
Nick Craig-Wood acf1e2df84 lib/file: fix MkdirAll after go1.21.4 stdlib update
In ths security related issue the go1.21.4 stdlib changed the parsing
of volume names on Windows.

https://github.com/golang/go/issues/63713

This had the consequences of breaking the MkdirAll tests which were
looking for specific error messages which changed and using invalid
paths.

In particular under go1.21.3:

    filepath.VolumeName(`\\?\C:`) == `\\?\C:`

But under go1.21.4 it is:

    filepath.VolumeName(`\\?\C:`) == `\\?`

The path `\\?\C:` isn't actually a valid Windows path. I reported this
as a FYI bug upstream - I'm not expecting it to be fixed.

See: https://github.com/golang/go/issues/64101
2023-11-14 09:47:46 +00:00
..
driveletter_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
driveletter_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
file.go lib/file: reimplement os.OpenFile allowing rename/delete open files under Windows 2019-01-11 10:26:34 +00:00
file_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
file_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
file_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
mkdir_other.go lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
mkdir_windows.go lib/file: fix MkdirAll after go1.21.4 stdlib update 2023-11-14 09:47:46 +00:00
mkdir_windows_test.go lib/file: fix MkdirAll after go1.21.4 stdlib update 2023-11-14 09:47:46 +00:00
preallocate.go lib/file: make pre-allocate detect disk full errors and return them 2021-03-15 19:22:06 +00:00
preallocate_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
preallocate_unix.go lib: use atomic types 2023-08-22 12:52:13 +01:00
preallocate_windows.go build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
unc.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
unc_test.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
unc_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00