copyurl: add no-clobber flag - fixes #3950

This commit is contained in:
Denis 2020-04-19 14:40:17 +03:00 committed by GitHub
parent 9d4b3580a5
commit 31a1cc46b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 43 additions and 8 deletions

View file

@ -19,6 +19,9 @@ Setting --auto-filename will cause the file name to be retreived from
the from URL (after any redirections) and used in the destination
path.
Setting --no-clobber will prevent overwriting file on the
destination if there is one with the same name.
Setting --stdout or making the output file name "-" will cause the
output to be written to standard output.
@ -31,6 +34,7 @@ rclone copyurl https://example.com dest:path [flags]
```
-a, --auto-filename Get the file name from the URL and use it for destination file path
--no-clobber Prevent file overwriting on destination
-h, --help help for copyurl
--stdout Write the output to stdout rather than a file
```