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