createDirectory実装 WIP

This commit is contained in:
r-ca 2024-01-09 12:52:39 +09:00
parent b0c97da382
commit a2eb04e96b
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -184,12 +184,19 @@ public class FileManagerImpl implements FileManager {
@Override @Override
public FileManager createDirectory() throws IOException { 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 @Override
public FileManager createDirectory(String directoryName) throws IOException { public FileManager createDirectory(String directoryName) throws IOException {
return null; this.resolve(directoryName);
return this.createDirectory();
} }
// Internal // Internal