Skip to content

Commit

Permalink
Small tui fix and unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebanana420 committed Aug 21, 2024
1 parent 1417059 commit 53517ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/parasolib/browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
14 changes: 13 additions & 1 deletion src/parasolib/commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand Down Expand Up @@ -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));
// }
// }
// }
}

0 comments on commit 53517ea

Please sign in to comment.