How to get file size

You can retrieve file size and file name from directory. It need below privilege.