/** * 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); } String relativePath = computeRelativePathToRoot(); try { return this.root.isDescendant(relativePath + potentialChildRelativePath); } catch (InterruptedException e) { return false; } }