diff --git a/src/parasolib/browser.java b/src/parasolib/browser.java index 2119cf1..a33c05e 100644 --- a/src/parasolib/browser.java +++ b/src/parasolib/browser.java @@ -38,7 +38,10 @@ public static String formString(String parent, String[] paths, boolean checkFile if (column_size < 1) {column_size += 1;} else {column_size = 0;} } } - return s + "\n"; + if (!globalvariables.DISPLAY_VERTICALLY_ONLY && column_size != 0) { + return s + "\n\n"; + } + else {return s + "\n";} } public static String mkEmptySpace(int len) { diff --git a/src/parasolib/commands.java b/src/parasolib/commands.java index 3b3a04f..d879d57 100644 --- a/src/parasolib/commands.java +++ b/src/parasolib/commands.java @@ -3,7 +3,6 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; -import java.io.FileOutputStream; import java.nio.file.Path; import bananatui.*; @@ -256,4 +255,17 @@ public static String formSizeTreeString(String parent, String[] paths) { } return s; } + + // public static void deleteDirectory(String path) { + // String[] path_list = new File(path).list(); + // for (String p : path_list) { + // File pf = new File(p); + // String full_path = path + "/" + p; + // if (pf.isFile()) {Files.delete(Path.of(full_path));} + // else { + // deleteDirectory(full_path); + // Files.delete(Path.of(full_path)); + // } + // } + // } } \ No newline at end of file