Improve workgroups and JCR file system.
[lgpl/argeo-commons.git] / org.argeo.jcr / src / org / argeo / jcr / fs / NodeDirectoryStream.java
index dbf6745360a7928b7d910bb342358ed2d33a1509..892aaee1aa2b1084f94f6cfec692b05d0511bbaa 100644 (file)
@@ -35,6 +35,9 @@ public class NodeDirectoryStream implements DirectoryStream<Path> {
                                nodes: while (nodeIterator.hasNext()) {
                                        try {
                                                Node node = nodeIterator.nextNode();
+                                               String nodeName = node.getName();
+                                               if (nodeName.startsWith("rep:") || nodeName.startsWith("jcr:"))
+                                                       continue nodes;
                                                next = new JcrPath(fs, node);
                                                if (filter != null) {
                                                        if (filter.accept(next))