コード例 #1
0
ファイル: YamlUpdater.php プロジェクト: Twiebie/bolt
 /**
  * Backup the YAML file.
  */
 protected function backup()
 {
     $this->file->copy($this->file->getPath() . '.' . date('Ymd-His'));
 }
コード例 #2
0
 /**
  * copies a file on cloud
  *
  * @param File $file file to be copied
  * @param string $newFileName new name of copied file
  *
  * @return bool false on error true on success
  */
 public function copyFile(File $file, $newFileName)
 {
     return $file->copy($newFileName) !== false;
 }