core/classes/FileHelper.class.php
public function chmodRecursive($path, $mode){

        $items = $this->recursiveIterate($path);

        foreach($items as $item){
            chmod($item,$mode);
        }//foreach

    }
public function chmodRecursive($path, $mode){

        $items = $this->recursiveIterate($path);

        foreach($items as $item){
            chmod($item,$mode);
        }//foreach

    }
public function chmodRecursive ( $ path , $ mode ) { $ items = $ this -> recursiveIterate ( $ path ) ; foreach ( $ items as $ item ) { chmod ( $ item , $ mode ) ; } //foreach }
Change file mode for directory and all contents.


@param string $path The directory to chmod recursivly.
@param int $mode The file mode to apply.
Change file mode for directory and all contents .