...
methodName | Description | Example | |||||
---|---|---|---|---|---|---|---|
chmod($filename, $mode) | This function method can be used to change file permissions on a *nix system. Expected parameters:
|
The call of the method above grants read, write and execute rights. | |||||
copy($filename, $destination) | This function method copies a file to a given location. Existing files will be overwritten Expected parameters:
Returns: bool |
The call of the method above copies the index.php file to the index2.php file. | |||||
exists($filename) | This function method checks if a file exists at the given location Expected parameters:
Returns: bool |
The call of the method returns true if the 'var/www/index.php' file exists overwise false.
| |||||
getExtension($basename) | This function method returns the file extension of the given file Expected parameters:
Returns: string |
The call of the method returns the string 'php'.
| |||||
info($filename) | This method returns information about the given file. The returing array includes the following information:
Expected parameters:
Returns: array | ||||||
isDirectoryEmpty($dir) | This method returns checks if the given directory is empty Expected parameters:
Returns: array | ||||||