public void execute()

in src/main/java/com/netflix/bdp/s3mper/cli/MetastoreListCommand.java [38:58]


    public void execute(Configuration conf, String[] args) throws Exception {
        try {
            
            Path path = new Path(args[0]);
            
            conf.set("s3mper.metastore.deleteMarker.enabled", "true");
            
            FileSystemMetastore meta = Metastore.getFilesystemMetastore(conf);
            meta.initalize(path.toUri(), conf);
            
            List<FileInfo> files = meta.list(Collections.singletonList(path));
            
            for (FileInfo f : files) {
                System.out.println(f.getPath() + (f.isDeleted() ? " [Deleted]" : ""));
            }
        } catch (Exception e) {
            System.out.println("Usage: s3mper metastore list <path>\n");
            
            e.printStackTrace();
        }
    }