mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Currentを確認するメソッド追加
This commit is contained in:
parent
f7b8006fa4
commit
ce834a7cfd
|
@ -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 ..
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user