fix: allow cp and mv within the current directory and into folders without trailing slash
This commit is contained in:
parent
b2ab1421df
commit
be71728e1a
3 changed files with 43 additions and 7 deletions
|
|
@ -74,10 +74,10 @@ A term with a prefix only matches that category; a term without a prefix matches
|
|||
|
||||
### Copying, Moving and Deleting
|
||||
|
||||
`copy` (`cp`) and `move` (`mv`) transfer the tags of a file to another path. By default only the tags are transferred; `-f` (`--file-operation`) also copies or moves the file itself. The destination needs a directory part, so write `./new.mp3` rather than `new.mp3`. With `-f`, a destination ending in `/` keeps the file name.
|
||||
`copy` (`cp`) and `move` (`mv`) transfer the tags of a file to another path. By default only the tags are transferred; `-f` (`--file-operation`) also copies or moves the file itself. With `-f`, an existing folder as destination keeps the file name. Without `-f`, a folder as destination gets the tags itself.
|
||||
|
||||
```
|
||||
$ otag cp song.mp3 ./song-copy.mp3
|
||||
$ otag cp song.mp3 song-copy.mp3
|
||||
$ otag mv -f song.mp3 archive/
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue