handled leading slash
This commit is contained in:
parent
c447aab1b9
commit
4eaa44b4f1
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ res_path_handle :: String -> T.Text
|
||||||
res_path_handle = T.pack . yeetTop
|
res_path_handle = T.pack . yeetTop
|
||||||
|
|
||||||
yeetTop :: FilePath -> FilePath
|
yeetTop :: FilePath -> FilePath
|
||||||
yeetTop path = new_dir </> filename
|
yeetTop path = '/' : new_dir </> filename
|
||||||
where
|
where
|
||||||
new_dir = concat $ drop 1 $ FP.splitPath $ FP.takeDirectory path
|
new_dir = concat $ drop 1 $ FP.splitPath $ FP.takeDirectory path
|
||||||
filename = FP.takeFileName path
|
filename = FP.takeFileName path
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue