Symfony\Component\Filesystem\Filesystem::chown
Change the owner of an array of files or directories
Signature
public function chown(Traversable
$files,
[string
$user = false,
[Boolean
$recursive = false]] )
Parameters
$files
— object- A filename, an array of files, or a \Traversable instance to change owner
$user
— string- The new owner user name
$recursive
— object- Whether change the owner recursively or not
Errors/Exceptions
-
IOException
- When the change fail