File utility class.
package | phing.util |
---|---|
version | $Id: 65bc3c3635d86cfa281e1ea0b087053fd3936eaa $ |
contentEquals(\PhingFile $file1, \PhingFile $file2) : boolean
boolean
Whether contents of two files is the same.copyFile(\PhingFile $sourceFile, \PhingFile $destFile, boolean $overwrite, boolean $preserveLastModified, array $filterChains, \Project $project, integer $mode) : void
\PhingFile
\PhingFile
boolean
boolean
array
\Project
integer
getChainedReader(\Reader $in, array $filterChains, \Project $project) : \Reader
normalize(string $path) : string
This includes: - Uppercase the drive letter if there is one. - Remove redundant slashes after the drive spec. - resolve all ./, .\, ../ and ..\ sequences. - DOS style paths that start with a drive letter will have \ as the separator.
string
Path to normalize.
string
resolveFile($file, $filename) : \PhingFile
the "reference" file for relative paths. This instance must be an absolute file and must not contain ./ or ../ sequences (same for \ instead of /).
a file name
\PhingFile
A PhingFile object pointing to an absolute file that doesn't contain ./ or ../ sequences
and uses the correct separator for the current platform.