Example #1
0
 /**
  * Creates a file at given path, checks if the file exists
  *
  * @param string $path Where to put the file.
  * @param string $contents Content to put in the file.
  * @return boolean Success
  * @link http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::createFile
  */
 public function createFile($path, $contents)
 {
     if (is_file($path) && $this->params['keep'] === true) {
         $this->out(__d('cake_console', 'Skipping file %s.', $path));
         return false;
     }
     return parent::createFile($path, $contents);
 }