203
187
function chmod($file, $mode = false, $recursive = false) {
208
188
if ( ! $this->exists($file) )
210
200
if ( ! $recursive || ! $this->is_dir($file) )
211
201
return $this->run_command(sprintf('chmod %o %s', $mode, escapeshellarg($file)), true);
212
202
return $this->run_command(sprintf('chmod -R %o %s', $mode, escapeshellarg($file)), true);