ftpparse provides two flags to identyfy file type:
int flagtrycwd; /* 0 if cwd is definitely pointless, 1 otherwise */
int flagtryretr; /* 0 if retr is definitely pointless, 1 otherwise */
curlftpscan interpret them as follows:
directory if flagtrycwd && !flagtryretr
file with size 0 if flagtrycwd && flagtryretr
file with size provided by ftpparse otherwise
http://code.google.com/p/uguu/source/detail?r=5d8cd4cc10
Modified:
/scanners/curlftpscan/cfwk.c
/scanners/curlftpscan/cfwk.h