We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d386a commit cb2af2eCopy full SHA for cb2af2e
src/main/java/de/jo/modules/impl/files/ModuleChangeDirectory.java
@@ -16,7 +16,9 @@
16
public class ModuleChangeDirectory implements Module {
17
@Override
18
public void run(String... args) throws Exception {
19
- if(args.length > 0) {
+ if(args.length == 0) {
20
+ System.out.println(ConsoleColors.YELLOW_BRIGHT+"> "+ConsoleColors.YELLOW+ConsoleTools.instance().currentDirectory.getCanonicalFile());
21
+ } else {
22
String fileName = args[0];
23
// D: --> absolut path
24
File newDir = fileName.charAt(1) == ':' ? new File(fileName) : new File(ConsoleTools.instance().currentDirectory, fileName);
0 commit comments