readDirF

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.