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