metadataOrNull

common
abstract fun metadataOrNull(path: Path): FileMetadata?

Returns metadata of the file, directory, or object identified by path. This returns null if there is no file at path.

Throws

if path cannot be accessed due to a connectivity problem, permissions problem, or other issue.

js
abstract fun metadataOrNull(path: Path): FileMetadata?

Throws