contao/core — Issue #3879: Add feature to change chmod value recursively for Folder
Author: DyaGa
Created: 2012-01-30 15:18:21+00:00
State: open

I mean to use something like this:

```php
public function chmod($strChmod, $blnRecursively = false)
{
if ($blnRecursively)
{
foreach(scan($this->strFolder) as $fileOrFolder)
{
$this->Files->chmod($fileOrFolder, $strChmod);
if (is_dir($fileOrFolder))
{
...do the same, scan and change chmod value...
}
...
}
}

return $this->Files->chmod($this->strFolder, $strChmod);
}
```