PDA

View Full Version : [REQ]develope dupecheck and search use mysql for ioftpd


terencehe
03-14-2003, 11:24 PM
i want dev a module for ioftpd:dupecheck and search use mysql

and i write a file for test.

#include "stdafx.h"
#include "stdio.h"

int main(int argc, char* argv[])
{
FILE *tempfile;
tempfile=fopen("c:\\dupe.tmp","w+");
for (int i=0;i<argc;i++)
fprintf(tempfile,"%s\n",argv[i]);
fclose(tempfile);
return 0;
}

and add ioftpd.ini

[Pre]
stor = c:\ioftpd\system\dupecheck.exe


when i upload a file test.file in ioftpd
the argv like this in dupe.tmp
c:\ioftpd\system\dupecheck.exe
STOR
test.file

------------------------
[REQ] can ioftpd send parameters like this:
c:\ioftpd\system\dupecheck.exe
STOR
/VFSdirectory/test.file

or how can get the file test.file in ioftpd'VFS directory?