create file at the remote although file size is 0

This commit is contained in:
Ryo Nakamura
2022-11-05 19:13:53 +09:00
parent 24126c927d
commit 6e6e5066c7
3 changed files with 17 additions and 10 deletions

View File

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