File utility class.
| package | phing.util |
|---|---|
| version | $Id: bac97997db3beb8443d972f769a4fbe41fd5a4e1 $ |
contentEquals(\PhingFile $file1, \PhingFile $file2) : boolean
booleanWhether contents of two files is the same.copyFile(\PhingFile $sourceFile, \PhingFile $destFile, boolean $overwrite, boolean $preserveLastModified, array $filterChains, \Project $project, integer $mode, $preservePermissions) : void
\PhingFile
\PhingFile
boolean
boolean
array
\Project
integer
getChainedReader(\Reader $in, array $filterChains, \Project $project) : \Reader
getDefaultFileCreationMask(boolean $dirmode, boolean $returnoctal) : String
booleanDirectory creation mask to select
booleanWhether the return value is in octal representation
StringCreation Masknormalize(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.
stringPath to normalize.
stringresolveFile($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
\PhingFileA PhingFile object pointing to an absolute file that doesn't contain ./ or ../ sequences
and uses the correct separator for the current platform.