2004-06-19 05:39:00 +00:00
|
|
|
// ziptest.cpp : Defines the entry point for the console application.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include "../boinc/config.h"
|
|
|
|
#endif
|
|
|
|
#include "boinc_zip.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
ZipFileList zflist;
|
|
|
|
#ifdef _WIN32
|
|
|
|
boinc_filelist("temp/linux", "", &zflist, SORT_NAME | SORT_ASCENDING);
|
|
|
|
#else
|
|
|
|
boinc_filelist("/var/home/carlc", "", &zflist, SORT_NAME | SORT_ASCENDING);
|
|
|
|
#endif
|
|
|
|
int jj;
|
|
|
|
for (jj = 0; jj < zflist.size(); jj++)
|
|
|
|
printf("%s %d\n", zflist[jj].c_str(), zflist[jj].m_statFile.st_mtime);
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
boinc_zip(ZIP_IT, "c:\\temp\\bztest", &zflist);
|
|
|
|
#else
|
|
|
|
boinc_zip(ZIP_IT, "./ziptest.zip", &zflist);
|
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
2004-12-08 00:40:19 +00:00
|
|
|
|
2005-01-02 18:29:53 +00:00
|
|
|
const char *BOINC_RCSID_9851414a72 = "$Id$";
|