simplifiy
This commit is contained in:
parent
535755cf12
commit
ab55689164
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ parentDir dir =
|
|||
then slash ++ (join s $ take ((length dirs) - 1) dirs)
|
||||
else ""
|
||||
where
|
||||
dirs = filter (\x -> length x > 0) $
|
||||
split s dir
|
||||
dirs = filter (\x -> not $ null x) $ split s dir
|
||||
slash = if (not $ isAbsolute dir) then "" else s
|
||||
s = [pathSeparator]
|
||||
|
||||
|
|
Loading…
Reference in a new issue