diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index cf2f0bdf..91dc217b 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -13,6 +13,8 @@ import java.util.List; public interface FileManager { Path getRootDir(); + Path getCurrentDir(); + void changeDir(String dirName); //cd void changeDir(Path path); //cd void backDir(); //cd .. diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index f6c58aed..fe8773ca 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -59,6 +59,11 @@ public class FileManagerImpl implements FileManager { return rootDir; } + @Override + public Path getCurrentDir() { + return currentDir; + } + @Override public void changeDir(String dirName) { this.currentDir = rootDir.resolve(dirName);