Property | Type | Description | |
---|---|---|---|
$dirs | boolean | Flag to include base sub directory listings or just the files. | |
$files | array | The files within the directory | |
$full | boolean | Flag to store the full path. | |
$objects | array | The files within the directory as objects | |
$path | string | The directory path | |
$rec | boolean | Flag to dig recursively. | |
$tree | array | The nested tree map of the directory and its files |
Method | Description | |
---|---|---|
__construct ( string $dir, boolean $full = false, boolean $rec = false, boolean $dirs = true ) : |
Constructor | |
emptyDir ( string $path = null, boolean $del = false ) : void | Empty an entire directory. | |
getFiles ( ) : array | Get the files. | |
getGroup ( ) : array | Get the owner of the file. Works on POSIX file systems only | |
getObjects ( ) : array | Get the files as objects. | |
getOwner ( ) : array | Get the owner of the file. Works on POSIX file systems only | |
getPath ( ) : string | Get the path. | |
getPermissions ( ) : string | Get the permissions of the directory. | |
getSystemTemp ( ) : string | Static method to return the system temp directory. | |
getTree ( ) : array | Get the tree. | |
getUploadTemp ( ) : string | Static method to return the upload temp directory. | |
getUser ( ) : array | Get current user. Works on POSIX file systems only | |
isDir ( ) : boolean | Is dir object. | |
isFile ( ) : boolean | Is file object. | |
setPermissions ( integer $mode ) : |
Change the permissions of the directory. |
Method | Description | |
---|---|---|
buildTree ( DirectoryIterator $it ) : array | Empty an entire directory. |
protected buildTree ( DirectoryIterator $it ) : array | ||
$it | DirectoryIterator | |
return | array |
public getPermissions ( ) : string | ||
return | string |
public static getSystemTemp ( ) : string | ||
return | string |
public static getUploadTemp ( ) : string | ||
return | string |
public setPermissions ( integer $mode ) : |
||
$mode | integer | |
return |
protected bool $dirs | ||
return | boolean |
protected array $objects | ||
return | array |
protected array $tree | ||
return | array |