stat

abstract fun stat(uri: Uri): PromiseResult<FileStat>(source)

Retrieve metadata about a file.

Note that the metadata for symbolic links should be the metadata of the file they refer to. Still, the SymbolicLink-type must be used in addition to the actual type, e.g. FileType.SymbolicLink | FileType.Directory.

Parameters

uri

The uri of the file to retrieve metadata about.

Throws

{@linkcode FileSystemError.FileNotFound FileNotFound} when uri doesn't exist.

Online Documentation