Synchronously truncates (or extends) the file to length bytes.
length
Throws a FileSystemException if the operation fails.
void truncateSync(int length);