protected $_move = false;
+ protected $_followSymlinks = false;
+ protected $_copySymlinksAsSymlinks = false;
+
public function getSshKey()
{
return $this;
}
+ /**
+ * @param bool $copySymlinksAsSymlinks
+ */
+ public function setCopySymlinksAsSymlinks(bool $copySymlinksAsSymlinks): void
+ {
+ $this->_copySymlinksAsSymlinks = $copySymlinksAsSymlinks;
+ }
+
+ /**
+ * @return bool
+ */
+ public function getCopySymlinksAsSymlinks(): bool
+ {
+ return $this->_copySymlinksAsSymlinks;
+ }
+
+ /**
+ * @param bool $followSymlinks
+ */
+ public function setFollowSymlinks(bool $followSymlinks): void
+ {
+ $this->_followSymlinks = $followSymlinks;
+ }
+
+ /**
+ * @return bool
+ */
+ public function getFollowSymlinks(): bool
+ {
+ return $this->_followSymlinks;
+ }
+
/**
* @param bool $move
*/
$this->setArg('t');
$this->setArg('r');
$this->setArg('v');
+ if ($this->getFollowSymlinks()) {
+ $this->setArg('L');
+ }
+ if ($this->getCopySymlinksAsSymlinks()) {
+ $this->setArg('l');
+ }
foreach ($this->_excludes as $e) {
$this->setArg('exclude', $e);
}