rclone/cmd
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
..
about Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
all bisync: implementation #5164 2021-11-01 21:00:27 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend docs: fix links to rc sections 2022-01-12 19:51:26 +01:00
bisync Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cachestats Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cat docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
check docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
checksum docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount build: disable cmount tests under macOS and the CI since they are locking up 2022-01-27 17:33:04 +00:00
config Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
copy lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
copyto docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
copyurl docs: fixed some typos 2021-04-28 22:55:27 +01:00
cryptcheck Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cryptdecode cryptdecode: fix formatting 2021-01-21 10:39:51 +00:00
dedupe docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
delete Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
deletefile Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
genautocomplete docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
gendocs lib/file: improve error message when attempting to create dir on nonexistent drive on windows 2021-10-01 23:18:39 +02:00
hashsum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
link link: use "off" value for unset expiry 2021-04-07 13:58:37 +01:00
listremotes docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
ls docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
lsd docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
lsf Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
lsjson Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
mount2 Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
mountlib test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
move docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
moveto docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
ncdu Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
obscure docs: improve grammar and fix typos (#5361) 2021-11-04 12:50:43 +01:00
purge docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rc Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rcat rcat: add --size flag for more efficient uploads of known size - fixes #4403 2021-04-13 12:25:47 +01:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes #5073. 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rmdirs docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
selfupdate Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
serve test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
settier Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
sha1sum hashsum: support creating hash from data received on stdin 2021-11-11 15:16:45 +01:00
size docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
sync docs: Removed ambiguity from copy command docs 2021-08-19 16:34:57 +01:00
test Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
touch touch: fix issue where directory is created instead of file 2022-01-28 20:29:12 +01:00
tree tree: remove obsolete --human replaced by global --human-readable - fixes #5868 2021-12-21 20:17:00 +01:00
version Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cmd.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
help.go docs: improve standard list of properties for options 2022-01-28 19:43:51 +01:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
selfupdate_disabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
selfupdate_enabled.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_darwin.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
siginfo_others.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00