Retrieving filesize information |
You can retrieve the byte size of a file using the Ftps#getFilesize method. All filenames are relative to your current remote directory.
Example
// get size of file image.gif in bytes long filesize = ftps.getFilesize("image.gif");
Note
The Ftps#getFilesize 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
|