dask / hdfs3

A wrapper for libhdfs3 to interact with HDFS from Python
http://hdfs3.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
136 stars 40 forks source link

Add isdir and isfile #140

Closed jcrist closed 6 years ago

jcrist commented 6 years ago

Used to better match the interface required by arrow.

martindurant commented 6 years ago

Apparently you should account for OSError and IOError when writing for both py2 and py3.

pitrou commented 6 years ago

Apparently you should account for OSError and IOError when writing for both py2 and py3.

Just catch EnvironmentError, which is a base class (or an alias) for both.