mirror of
https://github.com/upa/mscp.git
synced 2026-02-13 00:24:42 +08:00
if dst path has suffix '/', the dst path should be a directory
This fixes https://github.com/upa/mscp/issues/24
This commit is contained in:
@@ -400,6 +400,9 @@ void *mscp_scan_thread(void *arg)
|
||||
if (pool_size(m->src_pool) > 1)
|
||||
a.dst_path_should_dir = true;
|
||||
|
||||
if (m->dst_path[strlen(m->dst_path) - 1] == '/')
|
||||
a.dst_path_should_dir = true;
|
||||
|
||||
if (mscp_stat(m->dst_path, &ds, dst_sftp) == 0) {
|
||||
if (S_ISDIR(ds.st_mode))
|
||||
a.dst_path_is_dir = true;
|
||||
|
||||
Reference in New Issue
Block a user