get file size by file.size if it can.