Mercurial > gftp.yaz
diff src/uicommon/gftpui.c @ 918:e9f22ad1dec5
2007-4-26 Brian Masney <masneyb@gftp.org>
* src/uicommon/gftpui.c (_gftpui_common_trans_file_or_dir) - don't
attempt to create the directory if it already exists.
(gftpui_common_add_file_transfer) - don't ask the user what to do with
an individual directory that needs to be transferred.
* lib/local.c (local_mkdir) - removed code that checks for the EEXISTS
error.
author | masneyb |
---|---|
date | Fri, 27 Apr 2007 00:40:52 +0000 |
parents | 4ab11f70a7f4 |
children | 19b6d55e2646 |
line wrap: on
line diff
--- a/src/uicommon/gftpui.c Thu Apr 26 23:58:54 2007 +0000 +++ b/src/uicommon/gftpui.c Fri Apr 27 00:40:52 2007 +0000 @@ -1120,7 +1120,7 @@ for (templist = files; templist != NULL; templist = templist->next) { tempfle = templist->data; - if (tempfle->startsize > 0) + if (tempfle->startsize > 0 && !S_ISDIR (tempfle->st_mode)) break; } @@ -1448,7 +1448,10 @@ if (S_ISDIR (curfle->st_mode)) { tdata->tot_file_trans = 0; - ret = gftp_make_directory (tdata->toreq, curfle->destfile); + if (curfle->startsize > 0) + ret = 1; + else + ret = gftp_make_directory (tdata->toreq, curfle->destfile); } else {