I was going to say then remove it from the base class but we cant as we use the fs object to create dir on hdfs. So please go ahead and use the list object.