create parent directories as needed for addurl --file
This commit is contained in:
parent
7d1c09fe4a
commit
e7aaa55c53
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ perform :: String -> FilePath -> CommandPerform
|
|||
perform url file = ifAnnexed file addurl geturl
|
||||
where
|
||||
geturl = do
|
||||
whenM (liftIO $ doesFileExist file) $
|
||||
error $ "not overwriting existing " ++ file
|
||||
liftIO $ createDirectoryIfMissing True (parentDir file)
|
||||
fast <- Annex.getState Annex.fast
|
||||
if fast then nodownload url file else download url file
|
||||
addurl (key, _backend) = do
|
||||
|
|
Loading…
Reference in a new issue