mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
ifNotExist実装
This commit is contained in:
parent
022e7e278a
commit
fbde892f40
|
@ -210,12 +210,16 @@ public class FileManagerImpl implements FileManager {
|
|||
|
||||
@Override
|
||||
public FileManager createDirectoryIfNotExist() throws IOException {
|
||||
return null;
|
||||
if (!this.isExist()) {
|
||||
this.createDirectory();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FileManager createDirectoryIfNotExist(String directoryName) throws IOException {
|
||||
return null;
|
||||
this.resolve(directoryName);
|
||||
return this.createDirectoryIfNotExist();
|
||||
}
|
||||
|
||||
// Internal
|
||||
|
|
Loading…
Reference in New Issue
Block a user