mirror of
https://github.com/upa/mscp.git
synced 2026-05-20 03:37:29 +08:00
create file at the remote although file size is 0
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user