From 6e6e5066c7ad83ad2daf8f8ccbe7231211e41c97 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sat, 5 Nov 2022 19:13:53 +0900 Subject: create file at the remote although file size is 0 --- src/rename-logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rename-logic.py') diff --git a/src/rename-logic.py b/src/rename-logic.py index 9916c96..1544133 100755 --- a/src/rename-logic.py +++ b/src/rename-logic.py @@ -33,7 +33,7 @@ def recursive(src, rel_path, dst, dst_should_dir, replace_dir_name): def fill_dst(src, dst): - dst_should_dir = isdir(src) + dst_should_dir = isdir(src) | isdir(dst) replace_dir_name = not isdir(dst) recursive(src, "", dst, dst_should_dir, replace_dir_name) -- cgit v1.2.3