monopati-0.1.4: Well-typed paths

Safe HaskellSafe
LanguageHaskell2010

System.Monopati.Posix.Calls

Synopsis

Documentation

data Problem Source #

Constructors

Hardware

A physical I/O error has occurred: [EIO]

Permission

The process has insufficient privileges to perform the operation: [EROFS, EACCES, EPERM]

Exhausted

Insufficient resources are available to perform the operation: [EDQUOT, ENOSPC, ENOMEM, EMLINK]

Missing

There is no path to the target: [ENOENT, ENOTDIR]

current :: IO (Maybe (Absolute Path To Directory)) Source #

Return Nothing, if current working directory is root (cwd)

home :: IO (Maybe (Absolute Path To Directory)) Source #

Retrieve absolute path of home directory (echo ~)

create :: Absolute Path To Directory -> IO () Source #

Create a directory (mkdir)

change :: Absolute Path To Directory -> IO () Source #

Change directory (cd)

remove :: Absolute Path To Directory -> IO () Source #

Remove directory (rm -rf)