Symfony\Component\Filesystem\Filesystem::chmod
Change mode for an array of files or directories.
Signature
public function chmod(Traversable
$files,
[integer
$mode = 0000,
[integer
$umask = 0000,
[Boolean
$recursive = false]]] )
Parameters
$files
—
object
- A filename, an array of files, or a \Traversable instance to change mode
$mode
—
integer
- The new mode (octal)
$umask
—
integer
- The mode mask (octal)
$recursive
—
object
- Whether change the mod recursively or not
Errors/Exceptions
-
IOException
- When the change fail