Utility class that collects the functionality of the various scanDir methods that have been scattered in several tasks before.
The only method returns an array of source files. The array is a subset of the files given as a parameter and holds only those that are newer than their corresponding target files.
| package | phing.util |
|---|
__construct(\task $task)
\taskThe task we should log messages through
restrict(\files $files, \srcDir $srcDir, \destDir $destDir, \FilenameMapper $mapper, \force $force)
\filesthe original set of files
\srcDirall files are relative to this directory
\destDirtarget files live here. if null file names returned by the mapper are assumed to be absolute.
\FilenameMapperknows how to construct a target file names from source file names.
\forceBoolean that determines if the files should be forced to be copied.
restrictAsFiles($files, $srcDir, $destDir, $mapper)
$fileUtils
$task