diff --git a/src/Rclone.php b/src/Rclone.php index c663a92..5edde93 100644 --- a/src/Rclone.php +++ b/src/Rclone.php @@ -416,9 +416,9 @@ private function _run(string $command, array $args = [], array $operation_flags $operation_flags['dry-run'] = true; } - // Apply filter flags if set + // Apply filter args if set if ($this->filter !== null && $this->filter->hasFilters()) { - $operation_flags = array_merge($operation_flags, $this->filter->toFlags()); + $args = array_merge($args, $this->filter->toArgs()); } $commandArgs = CommandBuilder::buildCommandArgs(self::getBIN(), $command, $args);