size

open suspend override fun size(path: Path): Long(source)

Returns the size of the regular file at the specified path.

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 the provided path does not exist.