UNPKG

@ryanuo/utils

Version:

提供多种实用工具函数,涵盖算法、浏览器操作、网络请求等多个领域

13 lines (12 loc) 308 B
/** * 递归创建目录(如果不存在) * @category Path * @param dirPath 目标路径 */ export declare function mkdirp(dirPath: string): Promise<void>; /** * 递归删除目录或文件 * @category Path * @param path 目标路径 */ export declare function rmrf(path: string): Promise<void>;