private void renameFolder()

in src/main/java/com/netflix/bdp/s3mper/listing/ConsistentListingAspect.java [563:574]


    private void renameFolder(Path src, Path dst) throws Exception {
        metastore.add(dst, true);
        List<FileInfo> metastoreFiles = metastore.list(Collections.singletonList(src));
        for (FileInfo info : metastoreFiles) {
            Path target = new Path(dst, info.getPath().getName());
            if (info.isDirectory()) {
                renameFolder(info.getPath(), target);
            } else {
                renameFile(info.getPath(), target);
            }
        }
    }