stat method

Future<FileInfo> stat(
  1. Object path
)

Resolves to a {@linkcode Deno.FileInfo} for the specified path. Will always follow symlinks.

import { assert } from "https://deno.land/std/testing/asserts.ts";
const fileInfo = await Deno.stat("hello.txt");
assert(fileInfo.isFile);

Requires allow-read permission.

Implementation

_i2.Future<_i4.FileInfo> stat(_i2.Object path) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'stat',
      [path],
    ));