From 5cbf3ad6480adb6615a9a80b59d4a9d1ade62431 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Thu, 11 Jan 2024 12:53:34 +0900 Subject: fix wrong dst path for source path under '/' When a source file path is /FILE, its dest path would be dst/ILE. This commit fixes this issue (#8). --- test/test_e2e.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_e2e.py') diff --git a/test/test_e2e.py b/test/test_e2e.py index b6ed73d..a73d896 100644 --- a/test/test_e2e.py +++ b/test/test_e2e.py @@ -216,7 +216,7 @@ def test_copy_file_under_root_to_dir(mscp, src_prefix, dst_prefix): dst_prefix + os.path.dirname(dst.path)]) assert check_same_md5sum(src, dst) src.cleanup() - dst.cleanup() + dst.cleanup(preserve_dir = True) @pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix) -- cgit v1.2.3