/** \internal * file name walk callback. Walk the contents of each file * that is found. * * Does not return ERROR because all errors have been registered * and returning an error would indicate to TSK that errno and such are set. */ TSK_WALK_RET_ENUM TskAuto::dirWalkCb(TSK_FS_FILE * a_fs_file, const char *a_path, void *a_ptr) { TskAuto *tsk = (TskAuto *) a_ptr; if (tsk->m_tag != TSK_AUTO_TAG) { // we have no way to register an error... return TSK_WALK_STOP; } TSK_RETVAL_ENUM retval = tsk->processFile(a_fs_file, a_path); if ((retval == TSK_STOP) || (tsk->getStopProcessing())) return TSK_WALK_STOP; else return TSK_WALK_CONT; }
/** \internal * file name walk callback. Walk the contents of each file * that is found. */ TSK_WALK_RET_ENUM TskAuto::dirWalkCb(TSK_FS_FILE * a_fs_file, const char *a_path, void *a_ptr) { TskAuto *tsk = (TskAuto *) a_ptr; if (tsk->m_tag != TSK_AUTO_TAG) return TSK_WALK_STOP; TSK_RETVAL_ENUM retval = tsk->processFile(a_fs_file, a_path); if (retval != TSK_OK) { if (retval == TSK_STOP) return TSK_WALK_STOP; else return TSK_WALK_ERROR; } else return TSK_WALK_CONT; }