LIB: improve symlink handling

This commit is contained in:
2015-12-21 18:32:53 +01:00
parent 988350967a
commit 433cb164a6
4 changed files with 100 additions and 32 deletions

View File

@@ -444,6 +444,7 @@ normalize fp =
-- component if it's a symlink.
canonicalizePath' :: FilePath -> IO FilePath
canonicalizePath' fp = do
-- TODO: throw fileDoesNotExist error earlier
isSymlink <- PF.isSymbolicLink <$> PF.getSymbolicLinkStatus fp
if isSymlink
then do