resolve実装

This commit is contained in:
r-ca 2024-01-09 12:19:40 +09:00
parent d5cf2f31d6
commit 9142696fac
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -132,12 +132,13 @@ public class FileManagerImpl implements FileManager {
@Override
public FileManager resolve(String path) throws IOException{
Path resolvedPath;
try {
this.path = resolveStringPath(path);
resolvedPath = resolveStringPath(path);
} catch (IOException e) {
logger.error("resolve", e.getMessage());
throw new IOException("Invalid path: " + path);
}
return this;
return this.setPath(resolvedPath);
}
}