FtpModDate3
Determine last modification time of a remote file.
Usage
#include <ftplib.h>
int FtpModDate(char *path, char *buf, int max,
netbuf *nControl);
Parameters
|
Name of remote file to be checked. |
|---|---|
|
A pointer to a buffer where the result should be returned. |
|
Specifies the size of the user's buffer. |
|
A handle returned by FtpConnect(). |
Overview
FtpModDate() attempts to determine the last access time of a remote file and return it to the user's buffer. The date and time are returned as a string in the format 'YYYYMMDDHHMMSS'.
Return value
If a good response is received and the date and time are successfully parsed out of the result, 1 is returned. Otherwise, 0 is returned.
Some servers may not support the MDTM command.
Releases
Unchanged in 9 releases since Debian 2.1 (Slink).