if (HFileLink.isHFileLink(path) || StoreFile.isReference(path)) {
return new HFileLink(inputRoot, inputArchive, path).open(inputFs);
} else if (isHLogLinkPath(path)) {
String serverName = path.getParent().getName();
String logName = path.getName();
return new HLogLink(inputRoot, serverName, logName).open(inputFs);
}
return inputFs.open(path);
} catch (IOException e) {
LOG.error("Unable to open source file=" + path, e);
return null;