mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Currentを確認するメソッド追加
This commit is contained in:
parent
f7b8006fa4
commit
ce834a7cfd
|
@ -13,6 +13,8 @@ import java.util.List;
|
||||||
public interface FileManager {
|
public interface FileManager {
|
||||||
|
|
||||||
Path getRootDir();
|
Path getRootDir();
|
||||||
|
Path getCurrentDir();
|
||||||
|
|
||||||
void changeDir(String dirName); //cd
|
void changeDir(String dirName); //cd
|
||||||
void changeDir(Path path); //cd
|
void changeDir(Path path); //cd
|
||||||
void backDir(); //cd ..
|
void backDir(); //cd ..
|
||||||
|
|
|
@ -59,6 +59,11 @@ public class FileManagerImpl implements FileManager {
|
||||||
return rootDir;
|
return rootDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Path getCurrentDir() {
|
||||||
|
return currentDir;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void changeDir(String dirName) {
|
public void changeDir(String dirName) {
|
||||||
this.currentDir = rootDir.resolve(dirName);
|
this.currentDir = rootDir.resolve(dirName);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user