readDirF

File system access

Types

readDirF :: F String (String, Either D_IOError [String])

Description

readDirF accepts a directory path as input, reads the directory, and outputs the directory entries.

Input

Path name to the directory.

Output

Pair of the path name and either Right entries if the read was successful, or Left err if an error occurred.

See Also

Reading files: readFileF.

Writing files: writeFileF.

Performing other Haskell 1.2 IO operations: haskellIOF et al.