addurl: Make --preserve-filename also apply when eg a torrent contains multiple files
Forgot to remove sanitizeFilePath after adding sanitizeOrPreserveFilePath here.
This commit is contained in:
parent
fc9833f68d
commit
5b8524e1e6
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
git-annex (8.20200523) UNRELEASED; urgency=medium
|
git-annex (8.20200523) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* export: Added options for json output.
|
* export: Added options for json output.
|
||||||
|
* addurl: Make --preserve-filename also apply when eg a torrent contains
|
||||||
|
multiple files.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Tue, 26 May 2020 10:20:52 -0400
|
-- Joey Hess <id@joeyh.name> Tue, 26 May 2020 10:20:52 -0400
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ checkUrl addunlockedmatcher r o u = do
|
||||||
Nothing ->
|
Nothing ->
|
||||||
forM_ l $ \(u', sz, f) -> do
|
forM_ l $ \(u', sz, f) -> do
|
||||||
f' <- sanitizeOrPreserveFilePath o f
|
f' <- sanitizeOrPreserveFilePath o f
|
||||||
let f'' = adjustFile o (deffile </> sanitizeFilePath f')
|
let f'' = adjustFile o (deffile </> f')
|
||||||
void $ commandAction $ startRemote addunlockedmatcher r o f'' u' sz
|
void $ commandAction $ startRemote addunlockedmatcher r o f'' u' sz
|
||||||
Just f -> case l of
|
Just f -> case l of
|
||||||
[] -> noop
|
[] -> noop
|
||||||
|
|
Loading…
Add table
Reference in a new issue