Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzFileset::Scan | (void) |
Declared in file: hzDirectory.h
Defined in file : hzDirectory.cpp
Function Logic:
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 ; }