File utility class.
package |
phing.util |
---|---|
version |
$Id: bac97997db3beb8443d972f769a4fbe41fd5a4e1 $ |
getDefaultFileCreationMask(boolean $dirmode = false, boolean $returnoctal = false) : String
boolean
Directory creation mask to select
boolean
Whether the return value is in octal representation
String
Creation Mask
getChainedReader(\Reader $in, $filterChains, \Project $project) : \Reader
copyFile(\PhingFile $sourceFile, \PhingFile $destFile, boolean $overwrite = false, boolean $preserveLastModified = true, array $filterChains = null, \Project $project, integer $mode = 493, $preservePermissions = true) : void
boolean
boolean
array
integer
resolveFile(mixed $file, mixed $filename) : \PhingFile
mixed
the "reference" file for relative paths. This instance must be an absolute file and must not contain ./ or ../ sequences (same for \ instead of /).
mixed
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.
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
contentEquals(\PhingFile $file1, \PhingFile $file2) : boolean
boolean
Whether contents of two files is the same.