/** * TODO un-restrict it in a weekly after the patch */ @Override @Restricted(NoExternalUse.class) public boolean isDescendant(String potentialChildRelativePath) throws IOException { if (new File(potentialChildRelativePath).isAbsolute()) { throw new IllegalArgumentException("Only a relative path is supported, the given path is absolute: " + potentialChildRelativePath); } FilePath root = new FilePath(this.root); String relativePath = computeRelativePathToRoot(); try { return root.isDescendant(relativePath + potentialChildRelativePath); } catch (InterruptedException e) { return false; } }