fix dst path resolve

This commit is contained in:
Ryo Nakamura
2023-02-26 23:42:25 +09:00
parent 700d64b375
commit c649742b3e
3 changed files with 27 additions and 10 deletions

View File

@@ -45,7 +45,8 @@ int walk_src_path(sftp_session src_sftp, const char *src_path,
/* fill path->dst_path for all files */
int resolve_dst_path(const char *src_path, const char *dst_path,
struct list_head *path_list,
bool src_path_is_dir, bool dst_path_is_dir);
bool src_path_is_dir, bool dst_path_is_dir,
bool dst_path_should_dir);
/* resolve chunks from files in the path_list */
int resolve_chunk(struct list_head *path_list, struct list_head *chunk_list,