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
|
||||
|
||||
* 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
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ checkUrl addunlockedmatcher r o u = do
|
|||
Nothing ->
|
||||
forM_ l $ \(u', sz, f) -> do
|
||||
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
|
||||
Just f -> case l of
|
||||
[] -> noop
|
||||
|
|
Loading…
Add table
Reference in a new issue