JPath::setPermissions
Chmods files and directories recursively to given permissions.
Signature
public function setPermissions(string
$path,
[string
$filemode = '0644',
[string
$foldermode = '0755']] )
Parameters
-
$path
- Root path to begin changing mode [without trailing slash].
-
$filemode
- Octal representation of the value to change file mode to [null = no change].
-
$foldermode
- Octal representation of the value to change folder mode to [null = no change].
Returns
- boolean
- True if successful [one fail means the whole operation failed].