mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
createDirectory実装 fix
This commit is contained in:
parent
a2eb04e96b
commit
0439a998e3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user