Changes the owner of a file or directory.
Description
Default behavior is to do nothing, override this in your subclass, if desired.
Parameters
$file
stringrequired- Path to the file or directory.
$owner
string|intrequired- A user name or number.
$recursive
booloptional- If set to true, changes file owner recursively.
Default:
false
Source
public function chown( $file, $owner, $recursive = false ) {
return false;
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.