From 7a58647b4b5c5afe32da9c644f0788b07d0bff0a Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Sat, 16 Sep 2023 23:05:03 -0400 Subject: [PATCH] Exanduser when moving paths --- src/transpose/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transpose/utils.py b/src/transpose/utils.py index be7a115..0c344ca 100644 --- a/src/transpose/utils.py +++ b/src/transpose/utils.py @@ -7,7 +7,7 @@ def move(source: Path, destination: Path) -> None: """ Move a file using pathlib """ - shutil.move(source, destination) + shutil.move(source.expanduser(), destination.expanduser()) def remove(path: Path) -> None: