title: How to determine if a folder exists and has any files in it in HDFS?
body: <p>I am writing a shell script and I need to know if a directory does exist and has any files in it in HDFS. How do I implement it?</p>