add double quotes to os copy args

This commit is contained in:
George Lacey 2025-11-23 12:48:23 +00:00
parent 878f740bde
commit 6560218503

View File

@ -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()