Getting file size on local or ftp directory...

Hi… I need to get a file size on ftp or local directory, but I dont fount standart function (if they exists). How I can do this?

you can write a quick java service to get the file size.