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 5d5eeb8b..cf3192c8 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 @@ -78,12 +78,22 @@ public class FileManagerImpl implements FileManager { @Override public boolean isDirectory() { - return false; + if (this.isExist()) { + File file = this.path.toFile(); + return file.isDirectory(); + } else { + return false; + } } @Override public boolean isFile() { - return false; + if (this.isExist()) { + File file = this.path.toFile(); + return file.isFile(); + } else { + return false; + } } @Override