addurl now accepts --prefix and --suffix options to adjust the filenames used
This commit is contained in:
parent
a3c6762636
commit
49d102f98b
4 changed files with 54 additions and 23 deletions
|
@ -48,13 +48,22 @@ be used to get better filenames.
|
|||
|
||||
* `--pathdepth=N`
|
||||
|
||||
This causes a shorter filename to be used. For example,
|
||||
`--pathdepth=1` will use "dir/subdir/bigfile",
|
||||
while `--pathdepth=3` will use "bigfile".
|
||||
Rather than basing the filename on the whole url, this causes a path to
|
||||
be constructed, starting at the specified depth within the path of the
|
||||
url.
|
||||
|
||||
For example, adding the url http://www.example.com/dir/subdir/bigfile
|
||||
with `--pathdepth=1` will use "dir/subdir/bigfile",
|
||||
while `--pathdepth=3` will use "bigfile".
|
||||
|
||||
It can also be negative; `--pathdepth=-2` will use the last
|
||||
two parts of the url.
|
||||
|
||||
* `--prefix=foo` `--suffix=bar`
|
||||
|
||||
Use to adjust the filenames that are created by addurl. For example,
|
||||
`--suffix=.mp3` can be used to add an extension to the file.
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
[[git-annex]](1)
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
Is it possible to add a '--dir' option to addurl (or some other mechanic) to make git annex create the symlinks in the specified directory?
|
||||
|
||||
> --prefix makes sense, and might as well also add --suffix. [[done]]
|
||||
> --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue