getSize method

int getSize()

@AvailableInWorkers("dedicated")

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

Note: In earlier versions of the spec, FileSystemSyncAccessHandle.close, FileSystemSyncAccessHandle.flush, getSize(), and FileSystemSyncAccessHandle.truncate were wrongly specified as asynchronous methods, and older versions of some browsers implement them in this way. However, all current browsers that support these methods implement them as synchronous methods.

Implementation

external int getSize();