Ejemplo n.º 1
0
 /**
  * @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());
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function store(File $file)
 {
     $this->filesHelper->uploadFile($file->getName(), $file->getLocation(), $this->baseFolder);
 }
Ejemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function store(File $file)
 {
     copy($file->getLocation(), $this->location . DIRECTORY_SEPARATOR . $file->getName());
 }