コード例 #1
0
ファイル: SSH2.php プロジェクト: p13eater/backup-lib
 /**
  * @inheritdoc
  */
 public function store(File $file)
 {
     if ($this->session === null) {
         $this->connect();
     }
     return ssh2_scp_send($this->session, $file->getLocation(), $this->remoteLocation . DIRECTORY_SEPARATOR . $file->getName());
 }
コード例 #2
0
ファイル: GoogleDrive.php プロジェクト: p13eater/backup-lib
 /**
  * @inheritdoc
  */
 public function store(File $file)
 {
     $this->filesHelper->uploadFile($file->getName(), $file->getLocation(), $this->baseFolder);
 }
コード例 #3
0
ファイル: LocalFile.php プロジェクト: p13eater/backup-lib
 /**
  * @inheritdoc
  */
 public function store(File $file)
 {
     copy($file->getLocation(), $this->location . DIRECTORY_SEPARATOR . $file->getName());
 }