package com.crowdin.cli.commands.functionality;

import com.crowdin.cli.utils.tree.DrawTree;

import java.util.Collections;
import java.util.List;

public abstract class Dryrun {

    protected abstract List<String> getFiles();

    public void run(boolean treeView) {
        List<String> files = getFiles();
        Collections.sort(files);
        if (treeView) {
            (new DrawTree()).draw(files, 0);
        } else {
            files.forEach(System.out::println);
        }
    }
}

@@ -85,16 +85,61 @@
 rawTree;
+%0Aimport org.apache.commons.lang3.StringUtils;
 %0A%0Aimport
@@ -184,16 +184,52 @@
 il.List;
+%0Aimport java.util.stream.Collectors;
 %0A%0Apublic
@@ -382,17 +382,16 @@
 tFiles()
-;
 %0A       
@@ -395,30 +395,137 @@
     
-Collections.sort(files
+    .stream()%0A            .map(f -%3E f.replaceAll(%22%5E%5B/%5C%5C%5C%5C%5D+%22, %22%22))%0A            .sorted()%0A            .collect(Collectors.toList()
 );%0A 

Fix tree view