mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2025-04-13 19:50:48 +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…
x
Reference in New Issue
Block a user