mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
fix
This commit is contained in:
1 file changed
+2
@@ -174,8 +174,10 @@ public class FileManagerImpl implements FileManager {
|
||||
public FileManager createFile() throws IOException {
|
||||
try {
|
||||
if (this.autoCreateParent) {
|
||||
if (!this.path.getParent().toFile().exists()) {
|
||||
Files.createDirectories(this.path.getParent());
|
||||
}
|
||||
}
|
||||
Files.createFile(this.path);
|
||||
} catch (Exception e) {
|
||||
logger.error("createFile", e.getMessage());
|
||||
|
||||
Reference in new issue
Block a user