Correct a bug when checking 'directory' type + correct the exception raised when list files of a file.
Correct a bug when checking 'directory' type + correct the exception
raised when list files of a file.

fmenabe/python-unix