mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
createDirectory実装 fix
This commit is contained in:
1 file changed
+5
-1
@@ -185,7 +185,11 @@ public class FileManagerImpl implements FileManager {
|
||||
@Override
|
||||
public FileManager createDirectory() throws IOException {
|
||||
try {
|
||||
Files.createDirectory(this.path);
|
||||
if (this.autoCreateParent) { // configとして管理する必要はないかも?
|
||||
Files.createDirectories(this.path);
|
||||
} else {
|
||||
Files.createDirectory(this.path);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("createDirectory", e.getMessage());
|
||||
throw new IOException("Failed to create directory");
|
||||
|
||||
Reference in new issue
Block a user