1
mirror of https://github.com/rclone/rclone synced 2024-12-28 21:03:45 +01:00
rclone/lib/file
Eng Zer Jun 8cf76f5e11 test: use T.TempDir to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-01 11:47:04 +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_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
file_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00: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 test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00: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 Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00: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