summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2014-12-11 20:13:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2014-12-11 20:13:57 -0400
commit68db2f3217ff590ca768f5f56c8ba0be39eac288 (patch)
tree6cd7eaa80b4fb9f60c29d15bbd7d2de71af119e7 /Command
parent7504b0ccbb22ee9e33ee6b6a9c2e2b32bde571ab (diff)
truncate each compontent of path
Diffstat (limited to 'Command')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 667d72895..f3b4cf130 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -82,7 +82,7 @@ seek us = do
startRemote :: Remote -> Bool -> FilePath -> URLString -> Maybe Integer -> CommandStart
startRemote r relaxed file uri sz = do
pathmax <- liftIO $ fileNameLengthLimit "."
- let file' = truncateFilePath pathmax file
+ let file' = joinPath $ map (truncateFilePath pathmax) $ splitDirectories file
showStart "addurl" file'
showNote $ "from " ++ Remote.name r
next $ performRemote r relaxed uri file' sz