src/findlib/find.c
bool is_in_fileset(FF_PKT *ff)
{
   dlistString *node;
   char *fname;
   int i;
   findINCEXE *incexe;
   findFILESET *fileset = ff->fileset;
   if (fileset) {
      for (i=0; i<fileset->include_list.size(); i++) {
         incexe = (findINCEXE *)fileset->include_list.get(i);
         foreach_dlist(node, &incexe->name_list) {
            fname = node->c_str();
            Dmsg2(dbglvl, "Inc fname=%s ff->fname=%s\n", fname, ff->fname);
            if (strcmp(fname, ff->fname) == 0) {
               return true;
            }
         }
      }
      for (i=0; i<fileset->exclude_list.size(); i++) {
         incexe = (findINCEXE *)fileset->exclude_list.get(i);
         foreach_dlist(node, &incexe->name_list) {
            fname = node->c_str();
            Dmsg2(dbglvl, "Exc fname=%s ff->fname=%s\n", fname, ff->fname);
            if (strcmp(fname, ff->fname) == 0) {
               return true;
            }
         }
      }
   }
   return false;
}
/*
 * Test if the currently selected directory (in ff->fname) is
 *  explicitly in the Include list or explicitly in the Exclude
 *  list.
 */
Test if the currently selected directory (in ff->fname) is
explicitly in the Include list or explicitly in the Exclude
list.
Test if the currently selected directory ( in ff - > fname ) is explicitly in the Include list or explicitly in the Exclude list .
bool is_in_fileset(FF_PKT *ff)
{
   dlistString *node;
   char *fname;
   int i;
   findINCEXE *incexe;
   findFILESET *fileset = ff->fileset;
   if (fileset) {
      for (i=0; i<fileset->include_list.size(); i++) {
         incexe = (findINCEXE *)fileset->include_list.get(i);
         foreach_dlist(node, &incexe->name_list) {
            fname = node->c_str();
            Dmsg2(dbglvl, "Inc fname=%s ff->fname=%s\n", fname, ff->fname);
            if (strcmp(fname, ff->fname) == 0) {
               return true;
            }
         }
      }
      for (i=0; i<fileset->exclude_list.size(); i++) {
         incexe = (findINCEXE *)fileset->exclude_list.get(i);
         foreach_dlist(node, &incexe->name_list) {
            fname = node->c_str();
            Dmsg2(dbglvl, "Exc fname=%s ff->fname=%s\n", fname, ff->fname);
            if (strcmp(fname, ff->fname) == 0) {
               return true;
            }
         }
      }
   }
   return false;
}
bool is_in_fileset ( FF_PKT * ff ) { dlistString * node ; char * fname ; int i ; findINCEXE * incexe ; findFILESET * fileset = ff -> fileset ; if ( fileset ) { for ( i = 0 ; i < fileset -> include_list . size ( ) ; i ++ ) { incexe = ( findINCEXE * ) fileset -> include_list . get ( i ) ; foreach_dlist ( node , & incexe -> name_list ) { fname = node -> c_str ( ) ; Dmsg2 ( dbglvl , " \n " , fname , ff -> fname ) ; if ( strcmp ( fname , ff -> fname ) == 0 ) { return true ; } } } for ( i = 0 ; i < fileset -> exclude_list . size ( ) ; i ++ ) { incexe = ( findINCEXE * ) fileset -> exclude_list . get ( i ) ; foreach_dlist ( node , & incexe -> name_list ) { fname = node -> c_str ( ) ; Dmsg2 ( dbglvl , " \n " , fname , ff -> fname ) ; if ( strcmp ( fname , ff -> fname ) == 0 ) { return true ; } } } } return false ; }
Test if the currently selected directory (in ff->fname) is
  explicitly in the Include list or explicitly in the Exclude
  list.
Test if the currently selected directory ( in ff - > fname ) is explicitly in the Include list or explicitly in the Exclude list .