Summary
- abstract
- File
- Package hierarchy IO\Filesystem
- Class hierarchy \FileSystemElement
This class represents any file system element.
This class represents any file system element.
exists() : boolean
Allows you to know if the file system element exists.
True if the file exists, else, false.
None found |
get_path() : string
Returns the element full path.
The element full path.
None found |
get_path_from_root() : string
Returns the element path from the phpboost root.
The element from the phpboost root.
None found |
get_name() : string
Returns the element name.
The element name.
None found |
is_writable(boolean $force_chmod = false) : true
Returns true if the file or the folder is writable.
boolean | $force_chmod | If true, then, chmod will be forced to 777 if not writable. |
if the file or the folder is writable.
None found |
change_chmod(integer $chmod) : true
Changes the chmod of the element.
integer | $chmod | The new chmod of the file. Put a 0 at the begening of the number to indicate to the PHP parser that it's an octal value. |
if the chmod has been successfully changed.
None found |
delete()
None found |
__construct(string $path)
Builds a FileSystemElement object from the path of the element.
string | $path | Path of the element |
None found |