function stat
stat(path: string | URL): Task<StatInfo, StatError>

Returns metadata for a path without reading its contents.

Examples

Example 1

const info = await stat("./data.csv").run();
console.log(info.size, info.mtime);

Parameters

path: string | URL

Return Type

Usage

import { stat } from ".";