classes/phing/tasks/system/CopyTask.php
private function _scan(&$fromDir, &$toDir, &$files, &$dirs)
    {
        /* mappers should be generic, so we get the mappers here and
        pass them on to builMap. This method is not redundan like it seems */
        $mapper = $this->getMapper();

        $this->buildMap($fromDir, $toDir, $files, $mapper, $this->fileCopyMap);

        if ($this->includeEmpty) {
            $this->buildMap($fromDir, $toDir, $dirs, $mapper, $this->dirCopyMap);
        }
    }
private function _scan(&$fromDir, &$toDir, &$files, &$dirs)
    {
        /* mappers should be generic, so we get the mappers here and
        pass them on to builMap. This method is not redundan like it seems */
        $mapper = $this->getMapper();

        $this->buildMap($fromDir, $toDir, $files, $mapper, $this->fileCopyMap);

        if ($this->includeEmpty) {
            $this->buildMap($fromDir, $toDir, $dirs, $mapper, $this->dirCopyMap);
        }
    }
private function _scan ( & $ fromDir , & $ toDir , & $ files , & $ dirs ) { /* mappers should be generic, so we get the mappers here and
        pass them on to builMap. This method is not redundan like it seems */ $ mapper = $ this -> getMapper ( ) ; $ this -> buildMap ( $ fromDir , $ toDir , $ files , $ mapper , $ this -> fileCopyMap ) ; if ( $ this -> includeEmpty ) { $ this -> buildMap ( $ fromDir , $ toDir , $ dirs , $ mapper , $ this -> dirCopyMap ) ; } }
Compares source files to destination files to see if they
should be copied.

@param $fromDir
@param $toDir
@param $files
@param $dirs

@return void
Compares source files to destination files to see if they should be copied .