public void list(String path) throws IOException {
        FileStatus[] status = fs.listStatus(new Path(path));
        for(int i=0;i<status.length;i++){
            System.out.println(status[i].getPath());
        }
    }