metadata method

FutureResult<Metadata, IoError> metadata()

Queries the file system to get information about a file, directory, etc. Note: using this method means that the program can no longer compile for the web.

Implementation

FutureResult<Metadata, IoError> metadata() => Env.isWindows
    ? WindowsPath(_string).metadata()
    : UnixPath(_string).metadata();