From 7bd94a0e930f7999376e52f449d645fbab4fb2e0 Mon Sep 17 00:00:00 2001 From: ligeng1 Date: Tue, 20 Feb 2024 14:21:37 +0800 Subject: [PATCH] fix: args --- rclone_python/utils.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rclone_python/utils.py b/rclone_python/utils.py index 3f07696..e67e14f 100644 --- a/rclone_python/utils.py +++ b/rclone_python/utils.py @@ -20,8 +20,13 @@ def args2string(args: List[str]) -> str: - # separate flags/ named arguments by a space - return " ".join(args) + out = "" + + for item in args: + # separate flags/ named arguments by a space + out += f" {item}" + + return out def run_cmd(