mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
createDirectory実装 WIP
This commit is contained in:
parent
b0c97da382
commit
a2eb04e96b
|
@ -184,12 +184,19 @@ public class FileManagerImpl implements FileManager {
|
|||
|
||||
@Override
|
||||
public FileManager createDirectory() throws IOException {
|
||||
return null;
|
||||
try {
|
||||
Files.createDirectory(this.path);
|
||||
} catch (Exception e) {
|
||||
logger.error("createDirectory", e.getMessage());
|
||||
throw new IOException("Failed to create directory");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FileManager createDirectory(String directoryName) throws IOException {
|
||||
return null;
|
||||
this.resolve(directoryName);
|
||||
return this.createDirectory();
|
||||
}
|
||||
|
||||
// Internal
|
||||
|
|
Loading…
Reference in New Issue
Block a user