Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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.noramlise,
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