hdfs icon indicating copy to clipboard operation
hdfs copied to clipboard

ListDirectory returns error on empty directory

Open wangkuiyi opened this issue 12 years ago • 1 comments

When a directory is empty, C.hdfsListDirectory returns nil, and the condition at L391 of hdfs.go would judge the call to hdfs.ListDirectory had failed.

Could we have a more accurate judge about the fail of C.hdfsListDirectory?

wangkuiyi avatar Dec 08 '12 13:12 wangkuiyi

I guess I have encountered this issue before, however the error condition or return value cannot be determined simply. I think I would inspect it later.

zyxar avatar Dec 18 '12 06:12 zyxar