diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index 97fb1dae..cad34d3b 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -14,7 +14,7 @@ import java.util.List; public interface FileManager { File getFileRef(); - boolean isExist(); + boolean isExist(String name) throws IOException; boolean isDirectory(); boolean isFile(); boolean isWritable(); diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index af0d4a25..21987841 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -71,9 +71,9 @@ public class FileManagerImpl implements FileManager { } @Override - public boolean isExist() { - File file = this.path.toFile(); - return file.exists(); + public boolean isExist(String name) throws IOException { + Path resolvedPath = this.resolveStringPath(name); + return Files.exists(resolvedPath); } @Override