Synchronously get the length of the file.
Throws a FileSystemException if the operation fails.
int lengthSync();