Mercurial > gftp.yaz
comparison lib/misc.c @ 682:9b68dc473807
2005-2-4 Brian Masney <masneyb@gftp.org>
* lib/misc.c (gftp_get_transfer_action) - added the following FIXME
comments: add code to compare the file times and make a decision based
on that. Also if overwrite_default is enabled and the file sizes/dates
are the same, then skip the file
author | masneyb |
---|---|
date | Fri, 04 Feb 2005 14:52:26 +0000 |
parents | 07dc89f95076 |
children | d553d14a2565 |
comparison
equal
deleted
inserted
replaced
681:233e8f58f597 | 682:9b68dc473807 |
---|---|
1264 { | 1264 { |
1265 intptr_t overwrite_default; | 1265 intptr_t overwrite_default; |
1266 | 1266 |
1267 gftp_lookup_request_option (request, "overwrite_default", &overwrite_default); | 1267 gftp_lookup_request_option (request, "overwrite_default", &overwrite_default); |
1268 | 1268 |
1269 /* FIXME - add code to compare the file times and make a decision based | |
1270 on that. Also if overwrite_default is enabled and the file sizes/dates are | |
1271 the same, then skip the file */ | |
1272 | |
1269 if (overwrite_default) | 1273 if (overwrite_default) |
1270 fle->transfer_action = GFTP_TRANS_ACTION_OVERWRITE; | 1274 fle->transfer_action = GFTP_TRANS_ACTION_OVERWRITE; |
1271 else if (fle->startsize == fle->size) | 1275 else if (fle->startsize == fle->size) |
1272 fle->transfer_action = GFTP_TRANS_ACTION_SKIP; | 1276 fle->transfer_action = GFTP_TRANS_ACTION_SKIP; |
1273 else if (fle->startsize > fle->size) | 1277 else if (fle->startsize > fle->size) |