mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
createDirectory実装 fix
This commit is contained in:
parent
a2eb04e96b
commit
0439a998e3
|
@ -185,7 +185,11 @@ public class FileManagerImpl implements FileManager {
|
||||||
@Override
|
@Override
|
||||||
public FileManager createDirectory() throws IOException {
|
public FileManager createDirectory() throws IOException {
|
||||||
try {
|
try {
|
||||||
Files.createDirectory(this.path);
|
if (this.autoCreateParent) { // configとして管理する必要はないかも?
|
||||||
|
Files.createDirectories(this.path);
|
||||||
|
} else {
|
||||||
|
Files.createDirectory(this.path);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("createDirectory", e.getMessage());
|
logger.error("createDirectory", e.getMessage());
|
||||||
throw new IOException("Failed to create directory");
|
throw new IOException("Failed to create directory");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user