Check added for symlink - to avoid symlinks in the source path
[biaweb2.git] / biawebdocumenttree.hpp
index 5df2e9b..53023f1 100644 (file)
@@ -309,8 +309,8 @@ namespace biaweb {
                     
                     this->add_child (doctree.get());
                 }
-                // add the regular files as documents in the tree
-                else if (fsitem.is_regular_file ()) {
+                // add the regular files as documents in the tree and not symlink
+                else if (fsitem.is_regular_file () && !fsitem.is_symlink()) {
                     // if it is an index file (specially named as index 
                     // or index.md or whatever) directly add 
                     // the contents to the summary of the Doctree