Expanded FunctionReadDirectory class to return files and directories
* they are marked appropriately by a _type_ attribute