mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
ifNotExist実装
This commit is contained in:
1 file changed
+6
-2
@@ -210,12 +210,16 @@ public class FileManagerImpl implements FileManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager createDirectoryIfNotExist() throws IOException {
|
public FileManager createDirectoryIfNotExist() throws IOException {
|
||||||
return null;
|
if (!this.isExist()) {
|
||||||
|
this.createDirectory();
|
||||||
|
}
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager createDirectoryIfNotExist(String directoryName) throws IOException {
|
public FileManager createDirectoryIfNotExist(String directoryName) throws IOException {
|
||||||
return null;
|
this.resolve(directoryName);
|
||||||
|
return this.createDirectoryIfNotExist();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
|
|||||||
Reference in new issue
Block a user