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.
What happens if
list_directory(path)
is called on a file?list_directory
callsorg.apache.hadoop.fs.FileSystem.listStatus
, which also works for files: in this case, the returned array contains only oneFileStatus
object, containing info aboutpath
itself. We should clarify this in the docs.