crs4 / pydoop

A Python MapReduce and HDFS API for Hadoop
Apache License 2.0
237 stars 59 forks source link

Clarify list_directory behavior #307

Open simleo opened 6 years ago

simleo commented 6 years ago

What happens if list_directory(path) is called on a file? list_directory calls org.apache.hadoop.fs.FileSystem.listStatus, which also works for files: in this case, the returned array contains only one FileStatus object, containing info about path itself. We should clarify this in the docs.