size
Returns the size of the regular file at the specified path.
The operation is performed with Dispatchers.IO context.
Return
the size of the file in bytes.
Parameters
path
the path to the file whose size is to be obtained. Must be a regular file and exist.
Throws
if path doesn't exist or isn't a regular file.
if an I/O error occurs while determining the file size.