mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
ifNotExist実装
This commit is contained in:
parent
022e7e278a
commit
fbde892f40
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user