@nodelib/fs.scandir
Version:
List files and directories inside the specified directory
10 lines (9 loc) • 383 B
TypeScript
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, parentPath: string): Dirent;
export declare class DirentFromStats extends fs.Dirent {
private readonly [kStats];
constructor(name: string, stats: fs.Stats, parentPath: string);
}
export {};