path-size-0.1: Utility for reporting file-system sizes.
Safe HaskellNone
LanguageGHC2021

PathSize.Utils

Description

Provides utilities.

Since: 0.1

Synopsis

Windows / Unix compat

type MonadPosixC (m :: Type -> Type) = MonadPosix m Source #

Alias for MonadPosix* constraints. On Posix, this is MonadPosix (unix), which allows for greater efficiency. On Windows, this is just MonadPosixCompat (unix-compat).

hidden :: OsPath -> Bool Source #

Detects hidden paths via a rather crude dot check, with an exception for the current directory ./.

Since: 0.1

getFileStatus :: (HasCallStack, MonadPosixC m) => OsPath -> m FileStatus Source #

Retrieves the FileStatus for the given path.

Since: 0.1

Misc

unzipResultSeq :: Seq (PathSizeResult PathTree) -> (Seq PathE, Seq PathTree) Source #

Unzips a sequence of results.

Since: 0.1