The example EFFS-HTTP provides LIST information which is nice when doing a ftp dir, but which breaks mdelete because the ftp client gets a NLST full of the extraneous file info which is not a simple filename.
Of course, you could also create a new callback function as well, but it is a trivial change to the existing code for an added argument.
As implemented with the EFFS-HTTP callback:
Code: Select all
FTPDCallBackReportFunct *pFunc, int socket, bool nlst )
{
......
if (nlst == true)
pFunc( socket, find.filename ); // just the filename please
else
{
getdirstring( &find, s ); // the full LIST monty with permissions, time/date, etc.
pFunc( socket, s );
}
.......
}