mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
resolve実装
This commit is contained in:
parent
d5cf2f31d6
commit
9142696fac
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user