protected $_sshKey = null;
+ protected $_move = false;
+
public function getSshKey()
{
return $this;
}
+ /**
+ * @param bool $move
+ */
+ public function setMove(bool $move): void
+ {
+ $this->_move = $move;
+ }
+
+ /**
+ * @return bool
+ */
+ public function getMove(): bool
+ {
+ return $this->_move;
+ }
+
public function addExclude($exclude)
{
$this->_excludes[] = $exclude;
$this->setArg('force');
$this->setArg('delete-after');
}
+ if ($this->getMove()) {
+ $this->setArg('remove-source-files');
+ }
if ($destDistant) {
$ssh = 'ssh -p ' . $port;
if (null !== $this->getSshKey()) {