/** * Divides the given filePath string into directory part and fileName part * @param path Path for the file */ export declare function getFilePathParts(path: string): { dirParts: string[]; filePart: string; } | { filePart: string; dirParts?: undefined; }; /** * Deletes the contents of the given directory, exluding the ignoreFiles * @param dirPath Path for the directory * @param ignoreFiles List of files to keep in directory. Does not accept recursive paths, only first level files * * @returns true for successfull operation, false otherwise */ export declare function deleteDirContent(dirPath: string, ignoreFiles?: string[]): Promise; /** * Creates the given file and directories for the filePath * @param basePath Base directory path for the file * @param fileSubPath Filename or the sub directory path for the file to write * @param fileStr File contents * * @returns true for successfull operation, false otherwise */ export declare function createFile(basePath: string, fileSubPath: string, fileStr: string): Promise;