mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
isExistを引数なしでも実行できるように
This commit is contained in:
parent
e055f8fe9e
commit
d88c9c2030
|
@ -16,6 +16,7 @@ public interface FileManager {
|
|||
|
||||
File getFileRef();
|
||||
boolean isExist(String name) throws IOException;
|
||||
boolean isExist() throws IOException;
|
||||
boolean isDirectory();
|
||||
boolean isFile();
|
||||
boolean isWritable();
|
||||
|
|
|
@ -76,6 +76,11 @@ public class FileManagerImpl implements FileManager {
|
|||
return Files.exists(resolvedPath);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isExist() throws IOException {
|
||||
return Files.exists(this.path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDirectory() {
|
||||
if (this.isExist()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user