UNPKG

@pitifulhawk/flash-up

Version:

Interactive project scaffolder for modern web applications

13 lines 1.09 kB
import { FileOperationResult } from '../types/index.js'; export declare function pathExists(targetPath: string): Promise<boolean>; export declare function isDirectory(targetPath: string): Promise<boolean>; export declare function isDirectoryEmpty(dirPath: string): Promise<boolean>; export declare function createDirectory(dirPath: string): Promise<FileOperationResult>; export declare function copyFile(sourcePath: string, destPath: string, overwrite?: boolean): Promise<FileOperationResult>; export declare function readTextFile(filePath: string): Promise<string | null>; export declare function writeTextFile(filePath: string, content: string): Promise<FileOperationResult>; export declare function readJsonFile<T = any>(filePath: string): Promise<T | null>; export declare function writeJsonFile(filePath: string, data: any, indent?: number): Promise<FileOperationResult>; export declare function getAbsolutePath(relativePath: string, basePath?: string): string; export declare function isPathSafe(targetPath: string, basePath: string): boolean; //# sourceMappingURL=file-system.d.ts.map