senseb / libpyhdfs

Automatically exported from code.google.com/p/libpyhdfs
0 stars 0 forks source link

listdir of empty directory should return empty list, not None #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. hadoop fs -mkdir /empty
2. print pyhdfs.listdir(fs, '/empty')

What is the expected output? What do you see instead?

Expected [], got None.

This would let me differentiate between errors and empty directories.
Attached patch to fix this.

Original issue reported on code.google.com by tommi.vi...@gmail.com on 4 Nov 2009 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kofreestyler on 5 Nov 2009 at 2:52