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 5a59a4d1..fc0d828e 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 @@ -184,12 +184,19 @@ public class FileManagerImpl implements FileManager { @Override public FileManager createDirectory() throws IOException { - return null; + try { + Files.createDirectory(this.path); + } catch (Exception e) { + logger.error("createDirectory", e.getMessage()); + throw new IOException("Failed to create directory"); + } + return this; } @Override public FileManager createDirectory(String directoryName) throws IOException { - return null; + this.resolve(directoryName); + return this.createDirectory(); } // Internal