getSize

The getSize() method of the FileSystemSyncAccessHandle interface returns the size of the file associated with the handle in bytes.

MDN Reference