metadata

common
fun metadata(path: Path): FileMetadata

Returns metadata of the file, directory, or object identified by path.

Throws

if path does not exist or its metadata cannot be read.

js
fun metadata(path: Path): FileMetadata

Throws