JPath::setPermissions
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JPath::setPermissions[edit]
Description[edit]
Chmods files and directories recursivly to given permissions.
Template:Description:JPath::setPermissions [Edit Descripton]
Since[edit]
Synopsis[edit]
public static JPath::setPermissions ($path, $filemode= '0644', $foldermode= '0755')
Parameter | Type | Default | Description |
---|---|---|---|
$path | string | Root path to begin changing mode [without trailing slash] | |
$filemode | string | '0644' | Octal representation of the value to change file mode to [null = no change] |
$foldermode | string | '0755' | Octal representation of the value to change folder mode to [null = no change] |
Returns[edit]
boolean True if successful [one fail means the whole operation failed]
Defined in[edit]
libraries/joomla/filesystem/path.php (line 66)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JPath::setPermissions
Examples[edit]
<CodeExamplesForm />