Class Folder
Folder handling class.
The Folder class can be used for creating, reading and manipulating folders (directories) on the filesystem.
Located in /api/Folder.class.php (line 161)
Engine | --Folder
Inherited Variables
Inherited from Engine
Engine::$errors
Changes the folder mode.
Use the standard command-line chmod values.
- string $mode: the mode of the folder
Changes the owner and/or group.
Leave the owner or group blank if you do not want change one or the other.
- string $owner: folder owner
- string $group: folder group
- string $recursive: do chown recursively
Folder constructor.
- string $superuser: folder target folder
- $folder
- Engine::__construct()
- Engine constructor.
Creates a folder on the system.
The method will return an error if the file already exists.
- string $owner: folder owner
- string $group: folder group
- string $mode: the mode of the folder
Deletes the folder.
- bool $ignore_nonempty: flag to ignore (use rm -rf) if files are contained within folder
Checks the existence of the folder.
Returns the foldername (using PHP 'realpath') resolving references like "".
Returns the listing of files in the directory.
The current (.) and and parent (..) entries are not included.
- boolean $detailed: if true, array contains detailed informatio about diredtory
Returns the octal permissions of the current folder.
Returns the listing of files in the directory.
The current (.) and and parent (..) entries are not included.
Returns an estimate of the size of the contents of the folder.
Checks to see if given folder is really a folder.
Inherited Methods
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
CMD_CHMOD
= '/bin/chmod'
(line 171)
CMD_CHOWN
= '/bin/chown'
(line 170)
CMD_DU
= '/usr/bin/du'
(line 168)
CMD_FILE
= '/usr/bin/file'
(line 172)
CMD_FIND
= '/usr/bin/find'
(line 175)
CMD_LS
= '/bin/ls'
(line 167)
CMD_MKDIR
= '/bin/mkdir'
(line 169)
CMD_REALPATH
= '/usr/sbin/app-realpath'
(line 176)
CMD_RM
= '/bin/rm'
(line 174)
CMD_RMDIR
= '/bin/rmdir'
(line 173)
Inherited Constants
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:32:10 -0400 by phpDocumentor 1.3.2

