From 6560218503c64643b6f91cefff1912f2507a8c9c Mon Sep 17 00:00:00 2001 From: grglcy Date: Sun, 23 Nov 2025 12:48:23 +0000 Subject: [PATCH] add double quotes to os copy args --- cowcopy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowcopy.py b/cowcopy.py index 47df6f9..3da64b8 100644 --- a/cowcopy.py +++ b/cowcopy.py @@ -66,7 +66,7 @@ def create_new_links(source: Path, dest: Path, dry: bool): try: file.copy(new_file) except AttributeError: - os.system(f"cp --reflink {file} {new_file}") + os.system(f'cp --reflink "{file}" "{new_file}"') if __name__ == '__main__': args = get_args()