mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
親ディレクトリが不足している場合は作成するように WIP
This commit is contained in:
parent
b8e70cd015
commit
552f0e42b5
|
@ -81,7 +81,15 @@ public class FileManagerImpl implements FileManager {
|
|||
public void createDir(String dirName) {
|
||||
//ディレクトリ作成
|
||||
logger.debug("createDir", "called");
|
||||
currentDir.resolve(dirName).toFile().mkdir(); // TODO-rca: エラーハンドリング
|
||||
|
||||
Path dir = currentDir.resolve(dirName);
|
||||
if (!Files.exists(dir)) {
|
||||
try {
|
||||
Files.createDirectories(dir);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user