fileSize

inline fun Path.fileSize(): Long(source)

Returns the size of a regular file as a Long value of bytes or throws an exception if the file doesn't exist.

Since Kotlin

1.5

See also

Throws

if an I/O error occurred.