Retrieving filesize information

Top  Previous  Next

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

 

Setting your remote directory





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC