metadataOrNull
Return FileMetadata associated with a file or directory the path points to. If there is no such file or directory, or it's impossible to fetch metadata, null
is returned.
Parameters
path
the path to get the metadata for.