darcs-2.12.5: a distributed, interactive, smart revision control system

Safe Haskell | None
Language | Haskell2010

Bundled.Posix

Synopsis

- getFdStatus :: Fd -> IO FileStatus
- getSymbolicLinkStatus :: FilePath -> IO FileStatus
- getFileStatus :: FilePath -> IO FileStatus
- getFileStatusBS :: ByteString -> IO FileStatus
- fileExists :: FileStatus -> Bool
- modificationTime :: FileStatus -> EpochTime
- fileSize :: FileStatus -> FileOffset
- data FileStatus
- type EpochTime = CTime
- isDirectory :: FileStatus -> Bool
- isRegularFile :: FileStatus -> Bool

# Documentation

getFdStatus :: Fd -> IO FileStatus #

getSymbolicLinkStatus :: FilePath -> IO FileStatus #

getFileStatus :: FilePath -> IO FileStatus #

getFileStatusBS :: ByteString -> IO FileStatus #

Requires NULL-terminated bytestring -> unsafe! Use with care.

fileExists :: FileStatus -> Bool #

modificationTime :: FileStatus -> EpochTime #

fileSize :: FileStatus -> FileOffset #

data FileStatus #

type EpochTime = CTime #

isDirectory :: FileStatus -> Bool #

isRegularFile :: FileStatus -> Bool #