stat.d.ts 537 B

12345678910
  1. /// <reference types="node" />
  2. import * as fs from 'fs';
  3. import { StrictOptions } from '../managers/options';
  4. export declare function sync(path: fs.PathLike, options: StrictOptions): fs.Stats;
  5. export declare type AsyncCallback = (err: NodeJS.ErrnoException | null, stats?: fs.Stats) => void;
  6. export declare function async(path: fs.PathLike, options: StrictOptions, callback: AsyncCallback): void;
  7. /**
  8. * Returns `true` for followed symlink.
  9. */
  10. export declare function isFollowedSymlink(stat: fs.Stats, options: StrictOptions): boolean;