Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

test(path, exists=False, directory=False, zero_length=False): incorrect output #231

Open
uChauhan opened this issue Oct 9, 2017 · 0 comments

Comments

@uChauhan
Copy link

uChauhan commented Oct 9, 2017

Hi ,

Can anyone help me with the example on how to use this function.
my test directory is not empty and
I tried with test('/test/', zero_length=True) and it returned true for a non empty directory.
where as I believe it should return false

Basically i am looking for some utility to check if any hdfs directory or subdirectory is empty or not
if empty i want to delete that directory itself

quick response is appreciated.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant