@nodelib/fs.scandir
Version:
List files and directories inside the specified directory
11 lines (10 loc) • 374 B
TypeScript
/// <reference types="node" />
import * as fs from 'node:fs';
import type { Dirent } from '../types';
declare const kStats: unique symbol;
export declare function createDirentFromStats(name: string, stats: fs.Stats): Dirent;
export declare class DirentFromStats extends fs.Dirent {
private readonly [kStats];
constructor(name: string, stats: fs.Stats);
}
export {};