mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +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