83e926b3090278ebbbd801e0a7e0ef2f98ef0775 galt Tue Mar 29 01:55:50 2011 -0700 updating paraFetch and paraSync to support -newer option which only downloads newer files, very useful now that the dates are being preserved diff --git src/inc/net.h src/inc/net.h index 3d8f076..fcd8c61 100644 --- src/inc/net.h +++ src/inc/net.h @@ -226,20 +226,20 @@ * call this as: * char *newUrl = NULL; * int newSd = 0; * netSkipHttpHeaderLine(sd, url, &newSd, &newUrl); * if (newUrl != NULL) * // Update sd with newSd, free url if appropriate and replace it with newUrl, etc. * // free newUrl when finished. * This routine handles up to 5 steps of redirection. * The logic to this routine is also complicated a little to make it work in a pipe, which means we * can't attach a lineFile since filling the lineFile buffer reads in more than just the http header. */ boolean netGetFtpInfo(char *url, long long *retSize, time_t *retTime); /* Return date in UTC and size of ftp url file */ -boolean parallelFetch(char *url, char *outPath, int numConnections, int numRetries); +boolean parallelFetch(char *url, char *outPath, int numConnections, int numRetries, boolean newer); /* Open multiple parallel connections to URL to speed downloading */ #endif /* NET_H */