UNPKG

vmind_dir_scan

Version:

A library to scan the file system based on a root folder. The library will scan recursively and send a callback for every file and directory it finds, including details such as age, name, path, and size.

31 lines 688 B
import { z } from "zod"; declare const fsEventSchema: z.ZodObject<{ name: z.ZodString; path: z.ZodString; type: z.ZodString; ageInSeconds: z.ZodNumber; ageInDays: z.ZodNumber; size: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; path: string; type: string; ageInSeconds: number; ageInDays: number; size: number; }, { name: string; path: string; type: string; ageInSeconds: number; ageInDays: number; size: number; }>; export type FSEvent = z.infer<typeof fsEventSchema>; export declare enum FS_TYPE { FILE = "file", DIR = "dir", ERROR = "error" } export {}; //# sourceMappingURL=fsEvents.d.ts.map