Skip to content
5 changes: 4 additions & 1 deletion System/Posix/Files.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,12 @@ access name flags =
else throwErrnoPath "fileAccess" name


-- | @getFileStatus path@ calls gets the @FileStatus@ information (user ID,
-- | @getFileStatus path@ retrieves the @FileStatus@ information (user ID,
-- size, access times, etc.) for the file @path@.
--
-- 'getFileStatus' dereferences symbolic links, to retrieve the status of a symlink
-- use 'getSymbolicLinkStatus' instead.
--
-- Note: calls @stat@.
getFileStatus :: FilePath -> IO FileStatus
getFileStatus path = do
Expand Down
3 changes: 3 additions & 0 deletions System/Posix/Files/ByteString.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ access name flags =
-- | @getFileStatus path@ calls gets the @FileStatus@ information (user ID,
-- size, access times, etc.) for the file @path@.
--
-- 'getFileStatus' dereferences symbolic links, to retrieve the status of a symlink
-- use 'getSymbolicLinkStatus' instead.
--
-- Note: calls @stat@.
getFileStatus :: RawFilePath -> IO FileStatus
getFileStatus path = do
Expand Down
3 changes: 2 additions & 1 deletion System/Posix/Files/Common.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ isSymbolicLink stat =
isSocket stat =
(fileMode stat `intersectFileModes` fileTypeModes) == socketMode

-- | @getFdStatus fd@ acts as 'getFileStatus' but uses a file descriptor @fd@.
-- | @getFdStatus fd@ is similar to 'getFileStatus', but returns data about
-- the file associated with the descriptor @fd@.
--
-- Note: calls @fstat@.
getFdStatus :: Fd -> IO FileStatus
Expand Down
3 changes: 3 additions & 0 deletions System/Posix/Files/PosixString.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ access name flags =
-- | @getFileStatus path@ calls gets the @FileStatus@ information (user ID,
-- size, access times, etc.) for the file @path@.
--
-- 'getFileStatus' dereferences symbolic links, to retrieve the status of a symlink
-- use 'getSymbolicLinkStatus' instead.
--
-- Note: calls @stat@.
getFileStatus :: PosixPath -> IO FileStatus
getFileStatus path = do
Expand Down