comparison 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
comparison
equal deleted inserted replaced
917:afea4eaec5f0 918:e9f22ad1dec5
1118 if (!overwrite_default) 1118 if (!overwrite_default)
1119 { 1119 {
1120 for (templist = files; templist != NULL; templist = templist->next) 1120 for (templist = files; templist != NULL; templist = templist->next)
1121 { 1121 {
1122 tempfle = templist->data; 1122 tempfle = templist->data;
1123 if (tempfle->startsize > 0) 1123 if (tempfle->startsize > 0 && !S_ISDIR (tempfle->st_mode))
1124 break; 1124 break;
1125 } 1125 }
1126 1126
1127 show_dialog = templist != NULL; 1127 show_dialog = templist != NULL;
1128 } 1128 }
1446 return (ret); 1446 return (ret);
1447 1447
1448 if (S_ISDIR (curfle->st_mode)) 1448 if (S_ISDIR (curfle->st_mode))
1449 { 1449 {
1450 tdata->tot_file_trans = 0; 1450 tdata->tot_file_trans = 0;
1451 ret = gftp_make_directory (tdata->toreq, curfle->destfile); 1451 if (curfle->startsize > 0)
1452 ret = 1;
1453 else
1454 ret = gftp_make_directory (tdata->toreq, curfle->destfile);
1452 } 1455 }
1453 else 1456 else
1454 { 1457 {
1455 if (curfle->size == 0) 1458 if (curfle->size == 0)
1456 { 1459 {