mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
createFile実装
This commit is contained in:
parent
3a9053e987
commit
b0c97da382
|
@ -167,12 +167,19 @@ public class FileManagerImpl implements FileManager {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager createFile() throws IOException {
|
public FileManager createFile() throws IOException {
|
||||||
return null;
|
try {
|
||||||
|
Files.createFile(this.path);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("createFile", e.getMessage());
|
||||||
|
throw new IOException("Failed to create file");
|
||||||
|
}
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager createFile(String fileName) throws IOException {
|
public FileManager createFile(String fileName) throws IOException { // pathが書き換わってしまうのは想像できない挙動かも?
|
||||||
return null;
|
this.resolve(fileName);
|
||||||
|
return this.createFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user