static method getFileSystem [line 57]
Static method to return the FileSystem singelton representing this platform's local filesystem driver.
Tags:
method canDelete [line 199]
method canonicalize [line 142]
mixed canonicalize(
$strPath)
|
|
canonicalize filename by checking on disk
Tags:
Parameters:
method checkAccess [line 165]
void checkAccess(
PhingFile
$f, [
$write = false])
|
|
Check whether the file or directory denoted by the given abstract
pathname may be accessed by this process. If the second argument is false, then a check for read access is made; if the second argument is true, then a check for write (not read-write) access is made. Return false if access is denied or an I/O error occurs.
Parameters:
method chmod [line 443]
void chmod(
pathname
$pathname, mode
$mode)
|
|
Change the permissions on a file or directory.
Tags:
Parameters:
method chown [line 425]
void chown(
string
$pathname, string
$user)
|
|
Change the ownership on a file or directory.
Tags:
Parameters:
method compare [line 384]
method compareMTimes [line 668]
Int. compareMTimes(
file1
$file1, file2
$file2)
|
|
Compare the modified time of two files.
Tags:
Parameters:
method copy [line 397]
Copy a file.
Tags:
Overridden in child classes as:
- UnixFileSystem::copy()
- Copy a file, takes care of symbolic links
Parameters:
method createDirectory [line 319]
void createDirectory(
&$f, [
$mode = 0755])
|
|
Create a new directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.
NOTE: umask() is reset to 0 while executing mkdir(), and restored afterwards
Parameters:
method createNewFile [line 257]
void createNewFile(
string
$strPathname)
|
|
Create a new empty file with the given pathname. Return true if the file was created and false if a file or directory with the given pathname already exists. Throw an IOException if an I/O error occurs.
Tags:
Parameters:
method delete [line 274]
Delete the file or directory denoted by the given abstract pathname, returning true if and only if the operation succeeds.
Parameters:
method deleteOnExit [line 287]
Arrange for the file or directory denoted by the given abstract pathname to be deleted when Phing::shutdown is called, returning true if and only if the operation succeeds.
Parameters:
method fromURIPath [line 129]
Post-process the given URI path string if necessary. This is used on win32, e.g., to transform "/c:/foo" into "c:/foo". The path string still has slash separators; code in the PhingFile class will translate them after this method returns.
Tags:
Overridden in child classes as:
- Win32FileSystem::fromURIPath()
- UnixFileSystem::fromURIPath()
Parameters:
method getBooleanAttributes [line 153]
void getBooleanAttributes(
$f)
|
|
Return the simple boolean attributes for the file or directory denoted by the given abstract pathname, or zero if it does not exist or some other I/O error occurs.
Overridden in child classes as:
- UnixFileSystem::getBooleanAttributes()
Parameters:
method getDefaultParent [line 121]
method getLastModifiedTime [line 211]
Return the time at which the file or directory denoted by the given abstract pathname was last modified, or zero if it does not exist or some other I/O error occurs.
Parameters:
method getLength [line 234]
Return the length in bytes of the file denoted by the given abstract pathname, or zero if it does not exist, is a directory, or some other I/O error occurs.
Parameters:
method getPathSeparator [line 89]
method getSeparator [line 84]
method isAbsolute [line 136]
method listDir [line 296]
List the elements of the directory denoted by the given abstract pathname. Return an array of strings naming the elements of the directory if successful; otherwise, return
null
.
Parameters:
method listRoots [line 375]
method lock [line 456]
Locks a file and throws an Exception if this is not possible.
Tags:
Parameters:
method normalize [line 95]
void normalize(
$strPath)
|
|
Convert the given pathname string to normal form. If the string is already in normal form then it is simply returned.
Tags:
Overridden in child classes as:
- Win32FileSystem::normalize()
- Check that the given pathname is normal. If not, invoke the real normalizer on the part of the pathname that requires normalization.
- UnixFileSystem::normalize()
- A normal Unix pathname contains no duplicate slashes and does not end with a slash. It may be the empty string.
Parameters:
method prefixLength [line 101]
void prefixLength(
$pathname)
|
|
Compute the length of this pathname string's prefix. The pathname string must be in normal form.
Tags:
Overridden in child classes as:
- Win32FileSystem::prefixLength()
- UnixFileSystem::prefixLength()
- Compute the length of the pathname string's prefix. The pathname string must be in normal form.
Parameters:
method rename [line 336]
Rename the file or directory denoted by the first abstract pathname to the second abstract pathname, returning true if and only if the operation succeeds.
Tags:
Parameters:
method resolve [line 108]
void resolve(
$parent,
$child)
|
|
Resolve the child pathname string against the parent.
Both strings must be in normal form, and the result will be a string in normal form.
Tags:
Overridden in child classes as:
- Win32FileSystem::resolve()
- UnixFileSystem::resolve()
- Resolve the child pathname string against the parent.
Parameters:
method resolveFile [line 114]
method rmdir [line 552]
void rmdir(
dir
$dir, [children
$children = false])
|
|
Delete an empty directory OR a directory and all of its contents.
Parameters:
method setLastModifiedTime [line 353]
void setLastModifiedTime(
PhingFile
$f,
$time)
|
|
Set the last-modified time of the file or directory denoted by the given abstract pathname returning true if and only if the operation succeeds.
Tags:
Parameters:
method setReadOnly [line 366]
method symlink [line 507]
void symlink(
string
$target, string
$link)
|
|
Symbolically link a file to another name.
Currently symlink is not implemented on Windows. Don't use if the application is to be portable.
Parameters:
method touch [line 527]
void touch(
string
$file, [int
$time = null])
|
|
Set the modification and access time on a file to the present time.
Parameters:
method umask [line 639]
Set the umask for file and directory creation.
Tags:
Parameters:
method unlink [line 490]
Delete a file.
Tags:
Parameters:
method unlock [line 472]
Unlocks a file and throws an IO Error if this is not possible.
Tags:
Parameters: