Return TypeFunction nameArguments
hzEcodehzFileset::Scan(void)

Declared in file: hzDirectory.h
Defined in file : hzDirectory.cpp

Function Logic:

0:START 1:hzChain::Clear hzFileset::_clear ri 2:ri.Valid(); 3:hzList::Iter::Element opdir 4:lstat(*opdir,&fs)<0 5:hzChain::Printf 6:hzFileset::_scan_r rc 7:rc!=E_OK 8:Return rc 9:Return E_OK

Function body:

hzEcode hzFileset::Scan (void)
{
   _hzfunc("hzFileset::Scan") ;
   hzList<hzString>::Iter  ri ;
   FSTAT       fs ;
   hzString    opdir ;
   hzEcode     rc = E_OK ;
   m_Error.Clear() ;
   _clear() ;
   /*
   **  ** Save the current directory then iterate through the root directories, building the dependancy tree of each.
   **   ** When done return to the original current directory.
   **      */
   for (ri = m_Roots ; ri.Valid() ; ri++)
   {
       opdir = ri.Element() ;
       if (lstat(*opdir, &fs) < 0)
       {
           m_Error.Printf("Warning: root of %s does not exist\n", *opdir) ;
           continue ;
       }
       rc = _scan_r(0,opdir) ;
       if (rc != E_OK)
           return rc ;
   }
   return E_OK ;
}