fix filename limit when using --pathdepth
This commit is contained in:
parent
990fcad978
commit
69a0161c3a
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,8 @@ url2file url pathdepth = case pathdepth of
|
|||
| otherwise -> error "bad --pathdepth"
|
||||
where
|
||||
fullurl = uriRegName auth ++ uriPath url ++ uriQuery url
|
||||
frombits a = filesize $ join "/" $ a urlbits
|
||||
urlbits = map escape $ filter (not . null) $ split "/" fullurl
|
||||
frombits a = join "/" $ a urlbits
|
||||
urlbits = map (filesize . escape) $ filter (not . null) $ split "/" fullurl
|
||||
auth = fromMaybe (error $ "bad url " ++ show url) $ uriAuthority url
|
||||
filesize = take 255
|
||||
escape = replace "/" "_" . replace "?" "_"
|
||||
|
|
Loading…
Reference in a new issue