挙動修正

This commit is contained in:
r-ca 2024-01-08 11:30:30 +09:00
parent 31a0220b90
commit 38db65c9d3
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -130,7 +130,16 @@ public class FileManagerImpl implements FileManager {
@Override
public void autoCreateToCurrentDir() {
logger.debug("autoGenerateToCurrentDir", "called");
autoCreateDir(currentDir);
if (isExist(currentDir)) {
return;
}
else {
try {
Files.createDirectories(currentDir);
} catch (IOException e) {
e.printStackTrace();
}
}
}