Removed mode from hdfsFile_wrapper because it wasn't used