mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
fix
This commit is contained in:
parent
27aa6a2f15
commit
c05d45afdd
|
@ -174,7 +174,9 @@ public class FileManagerImpl implements FileManager {
|
|||
public FileManager createFile() throws IOException {
|
||||
try {
|
||||
if (this.autoCreateParent) {
|
||||
Files.createDirectories(this.path.getParent());
|
||||
if (!this.path.getParent().toFile().exists()) {
|
||||
Files.createDirectories(this.path.getParent());
|
||||
}
|
||||
}
|
||||
Files.createFile(this.path);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user