Retrieving file timestamp information |
You can retrieve the date a file was last modified using the Ftps#getFileTimestamp method. All filenames are relative to your current remote directory.
Example
// get last modified date of image.gif Date date = ftps.getFileTimestamp("image.gif");
Note
The Ftps#getFileTimestamp method utilizes a command that is supported by a majority of FTP servers however is not officially recognized by RFC 959 so may not be supported on some FTP servers.
See also
|