1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00
rclone/lib/file
albertony 711478554e lib/file: use builtin MkdirAll with go1.22 instead of our own custom version for windows
Starting with go1.22 the standard os.MkdirAll has improved its handling of volume names,
and as part of that it now stops recursing into parent directory if it is a volume name
(see: cd589c8a73).
This is similar to what was our main change and reason for creating a custom version. When
building with go1.22 or newer we can therefore stop using our custom version, with the
advantage that we automatically get current and future relevant improvements from golang.
To support building with go1.21 the existing custom version is still kept, and therefore
also our wrapper function file.MkdirAll - but it now just calls os.MkdirAll with go1.22
or newer on Windows.

See #5401, #6420 and acf1e2df84 for details about the
creation of our custom version of MkdirAll.
2024-09-02 18:16:38 +02:00
..
driveletter_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
driveletter_windows.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
file_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
file_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
file_windows.go windows: make rclone work with SeBackupPrivilege and/or SeRestorePrivilege 2024-06-07 13:26:30 +01: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: use builtin MkdirAll with go1.22 instead of our own custom version for windows 2024-09-02 18:16:38 +02:00
mkdir_windows_go122_test.go lib/file: use builtin MkdirAll with go1.22 instead of our own custom version for windows 2024-09-02 18:16:38 +02:00
mkdir_windows_test.go lib/file: use builtin MkdirAll with go1.22 instead of our own custom version for windows 2024-09-02 18:16:38 +02:00
mkdir_windows.go lib/file: use builtin MkdirAll with go1.22 instead of our own custom version for windows 2024-09-02 18:16:38 +02:00
preallocate_other.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
preallocate_unix.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
preallocate_windows.go build: fix linting issues reported by golangci-lint on windows 2024-04-22 19:29:12 +02: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: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
unc_windows.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
unc.go build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00