try {
// TODO check if assignable
Node node = toNode(path);
+ if(node==null) {
+ throw new JcrFsException("JCR node not found for "+path);
+ }
return (A) new JcrBasicfileAttributes(node);
} catch (RepositoryException e) {
throw new JcrFsException("Cannot read basic attributes of " + path, e);
return ((JcrPath) path).getNode();
}
+ /**
+ * To be overriden in order to support the ~ path, with an implementation
+ * specific concept of user home.
+ *
+ * @return null by default
+ */
+ public Node getUserHome(Session session) {
+ return null;
+ }
}