classes/phing/system/io/UnixFileSystem.php
UnixFileSystem class. This class encapsulates the basic file system functions for platforms using the unix (posix)-stylish filesystem. It wraps php native functions suppressing normal PHP error reporting and instead uses Exception to report and error.
This class is part of a oop based filesystem abstraction and targeted to run on all supported php platforms.
Note: For debugging turn track_errors on in the php.ini. The error messages and log messages from this class will then be clearer because $php_errormsg is passed as part of the message.
FIXME: - Comments - Error handling reduced to min, error are handled by PhingFile mainly
- author
- Andreas Aderhold, andi@binarycloud.com
- package
- phing.system.io
- version
- $Revision: 1237 $
\UnixFileSystem
UnixFileSystem class. This class encapsulates the basic file system functions for platforms using the unix (posix)-stylish filesystem. It wraps php native functions suppressing normal PHP error reporting and instead uses Exception to report and error.
This class is part of a oop based filesystem abstraction and targeted to run on all supported php platforms.
Note: For debugging turn track_errors on in the php.ini. The error messages and log messages from this class will then be clearer because $php_errormsg is passed as part of the message.
FIXME: - Comments - Error handling reduced to min, error are handled by PhingFile mainly
- Extends from
- \FileSystem
- author
- Andreas Aderhold, andi@binarycloud.com
- package
- phing.system.io
- version
- $Revision: 1237 $
Methods

canDelete(
\PhingFile $f
)
:
boolean| Name | Type | Description |
|---|---|---|
| $f | \PhingFile |
| Type | Description |
|---|---|
| boolean |

compare(
$f1, $f2
)
:
| Name | Type | Description |
|---|---|---|
| $f1 | ||
| $f2 |

copy(
\PhingFile $src, \PhingFile $dest
)
:
void| Name | Type | Description |
|---|---|---|
| $src | \PhingFile | Source path and name file to copy. |
| $dest | \PhingFile | Destination path and name of new file. |
- throws
- if file cannot be copied.

normalize(
$strPathname
)
:
Check that the given pathname is normal. If not, invoke the real normalizer on the part of the pathname that requires normalization. This way we iterate through the whole pathname string only once.
| Name | Type | Description |
|---|---|---|
| $strPathname |

normalizer(
$pathname, $len, $offset
)
:
| Name | Type | Description |
|---|---|---|
| $pathname | ||
| $len | ||
| $offset |

prefixLength(
$pathname
)
:
| Name | Type | Description |
|---|---|---|
| $pathname |

resolve(
$parent, $child
)
:
Both strings must be in normal form, and the result will be in normal form.
| Name | Type | Description |
|---|---|---|
| $parent | ||
| $child |