UNPKG

@nodelib/fs.scandir

Version:

List files and directories inside the specified directory

21 lines (20 loc) 530 B
/// <reference types="node" /> import type * as fs from 'fs'; export interface Entry { dirent: Dirent; name: string; path: string; stats?: Stats; } export declare type Stats = fs.Stats; export declare type ErrnoException = NodeJS.ErrnoException; export interface Dirent { isBlockDevice: () => boolean; isCharacterDevice: () => boolean; isDirectory: () => boolean; isFIFO: () => boolean; isFile: () => boolean; isSocket: () => boolean; isSymbolicLink: () => boolean; name: string; }