rclone/lib/file
albertony fbc7f2e61b lib/file: improve error message when attempting to create dir on nonexistent drive on windows
This replaces built-in os.MkdirAll with a patched version that stops the recursion
when reaching the volume part of the path. The original version would continue recursion,
and for extended length paths end up with \\? as the top-level directory, and the error
message would then be something like:
mkdir \\?: The filename, directory name, or volume label syntax is incorrect.
2021-10-01 23:18:39 +02: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_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
file_test.go config: prevent use of windows reserved names in config file name 2021-04-12 18:17:19 +02:00
file_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
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_test.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: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
preallocate_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
preallocate_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
preallocate_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
preallocate.go lib/file: make pre-allocate detect disk full errors and return them 2021-03-15 19:22:06 +00: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
unc.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00