FileSystem fs = FileSystem.get(conf); FileStatus[] status= fs.listStatus(new Path(“hadoop/path”));
hadoop fs -ls <hadoop path>