diff options
-rw-r--r-- | Command/AddUrl.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs index f91d6dd55..e23f4262b 100644 --- a/Command/AddUrl.hs +++ b/Command/AddUrl.hs @@ -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 |