Add helper function to manipulate HDFS files