chmod(string|array|Traversable $files, int $mode, int $umask, bool $recursive = false)
Change mode for an array of files or directories.
Parameters string|array|Traversable
$files A filename, an array of files, or a \Traversable instance to change mode int $mode The new mode (octal) int $umask The mode mask (octal) bool $recursive Whether change the mod recursively or not Exceptions IOException When the change fail