From ce834a7cfd01eb79fc4d097714982dda096690b7 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 15:06:33 +0900 Subject: [PATCH] =?UTF-8?q?Current=E3=82=92=E7=A2=BA=E8=AA=8D=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/source/file/FileManager.java | 2 ++ .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 5 +++++ 2 files changed, 7 insertions(+) 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);