FTP server file request issue

Discussion to talk about software related topics only.
Post Reply
Vernon
Posts: 177
Joined: Sat Oct 10, 2009 6:33 pm

FTP server file request issue

Post by Vernon »

When requesting a file using an FTP client, for example CORE FTP, using the function below, I don't get a 'file_name' at all unless it matches the READ_FILENAME definition. The example tests for a match but that seems superfluous because if you remove the test and attempt put the file name on the local screen at the beginning of this function you get nothing if there is no match to READ_FILENAME. Where can I find the filename sent by the FTP client?


int FTPD_SendFileToClient(const char *full_directory, const char *file_name, void *pSession, int fd)
Vernon
Posts: 177
Joined: Sat Oct 10, 2009 6:33 pm

Re: FTP server file request issue

Post by Vernon »

Never mind - I figured it out...
Post Reply