docs: function forEachLeafFolder(folders, fn) {
          angular.forEach(folders, function (folder) {
              var children = folder["children"];
              if (angular.isArray(children) && children.length > 0) {
                  forEachLeafFolder(children, fn);
              }
              else {
                  fn(folder);
              }
          });
      }