| @@ 153-160 (lines=8) @@ | ||
| 150 | ||
| 151 | chmod($path, $perms); |
|
| 152 | ||
| 153 | if ($overwrite && $file_exists) |
|
| 154 | { |
|
| 155 | CLI::write( CLI::color("\t". strtolower( lang('overwrote') ) ." ", 'light_red') . str_replace(APPPATH, '', $path ) ); |
|
| 156 | } |
|
| 157 | else |
|
| 158 | { |
|
| 159 | CLI::write( CLI::color("\t". strtolower( lang('created') ) ." ", 'yellow') . str_replace(APPPATH, '', $path ) ); |
|
| 160 | } |
|
| 161 | ||
| 162 | return $this; |
|
| 163 | } |
|
| @@ 300-307 (lines=8) @@ | ||
| 297 | break; |
|
| 298 | } |
|
| 299 | ||
| 300 | if ($success) |
|
| 301 | { |
|
| 302 | CLI::write( CLI::color("\t". strtolower( lang('modified') ) ." ", 'cyan') . str_replace(APPPATH, '', $path ) ); |
|
| 303 | } |
|
| 304 | else |
|
| 305 | { |
|
| 306 | CLI::write( CLI::color("\t". strtolower( lang('error') ) ." ", 'light_red') . str_replace(APPPATH, '', $path ) ); |
|
| 307 | } |
|
| 308 | ||
| 309 | return $this; |
|
| 310 | } |
|