--- loncom/metadata_database/searchcat.pl 2014/01/16 13:31:31 1.82 +++ loncom/metadata_database/searchcat.pl 2016/01/27 22:22:59 1.83 @@ -2,7 +2,7 @@ # The LearningOnline Network # searchcat.pl "Search Catalog" batch script # -# $Id: searchcat.pl,v 1.82 2014/01/16 13:31:31 raeburn Exp $ +# $Id: searchcat.pl,v 1.83 2016/01/27 22:22:59 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -460,7 +460,7 @@ sub descend_tree { closedir(DIR); $depth ++; foreach my $item (@contents) { - if ($depth < 4) { + if (($depth < 4) && (length($item) == 1)) { &descend_tree($dom,$dir.'/'.$item,$depth,$allportusers,$alldomusers); } else { if (-e $dir.'/'.$item.'/file_permissions.db') {