isExistを引数なしでも実行できるように

This commit is contained in:
r-ca committed 2024-01-09 13:50:47 +09:00
1 parent e055f8fe9e
commit d88c9c2030
2 files changed
+6

No files matched your search

@@ -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()) {