Added Flags to FS tasks (closes #344)

This commit is contained in:
thePanz
2017-02-07 23:28:10 +01:00
parent b36f90e80a
commit 33364f5e24
6 changed files with 88 additions and 17 deletions
+3 -2
View File
@@ -28,7 +28,7 @@ class MoveTask extends AbstractFileTask
public function getDescription()
{
try {
return sprintf('[FS] Move "%s" to "%s"', $this->getFile('from'), $this->getFile('to'));
return sprintf('[FS] Move %s"%s" to "%s"', $this->getFlags(), $this->getFile('from'), $this->getFile('to'));
} catch (Exception $exception) {
return '[FS] Move [missing parameters]';
}
@@ -38,8 +38,9 @@ class MoveTask extends AbstractFileTask
{
$moveFrom = $this->getFile('from');
$moveTo = $this->getFile('to');
$flags = $this->getFlags();
$cmd = sprintf('mv %s %s', $moveFrom, $moveTo);
$cmd = sprintf('mv %s"%s" "%s"', $flags, $moveFrom, $moveTo);
/** @var Process $process */
$process = $this->runtime->runCommand($cmd);