Closed maxsatula closed 9 years ago
Here is what we have for cp
command:
-i, --interactive prompt before overwrite (overrides a previous -n
option)
-n, --no-clobber do not overwrite an existing file (overrides
a previous -i option)
By default, cp
overwrites all files at destination. Not a good idea for ocp
behavior
Consider having something like that
-i, --interactive prompt before overwrite (overrides a previous -y
option)
-y, --overwrite overwrite an existing file (overrides
a previous -i option)
Alternatively
-i, --interactive prompt before overwrite (overrides a previous -f
option)
-f, --force force overwrite an existing file (overrides
a previous -i option)
This relates to transfers as well as --gzip
and --gunzip
modes
Check file existence before overwrite (either local or remote)