Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- isSymlink :: MonadIO m => FilePath -> m Bool
- isSymlinkValid :: MonadIO m => FilePath -> m Bool
- relativeToFile :: FilePath -> FilePath -> FilePath -> FilePath
- parentFolder :: FilePath
- currentFolder :: FilePath
- data FileType
- getFileType :: MonadIO m => FilePath -> m FileType
- normalize :: FilePath -> FilePath
Documentation
isSymlinkValid :: MonadIO m => FilePath -> m Bool #
relativeToFile :: FilePath -> FilePath -> FilePath -> FilePath #
relativeToFile
translates relative path relatively to other file path.
Both arguments can be an absolute path.
Absolute path it is returned unchanged.
getFileType :: MonadIO m => FilePath -> m FileType #
normalize :: FilePath -> FilePath #
normalize
is better version of System.FilePath.Posix.normalise,
because it removes double dot path segments
https://github.com/haskell/filepath/issues/86
https://github.com/haskell/filepath/issues/87
https://github.com/haskell/directory/issues/126