zip-lib
Version:
zip and unzip library for node
20 lines (19 loc) • 725 B
TypeScript
export interface FileEntry {
path: string;
isSymbolicLink: boolean;
type: FileType;
mtime: Date;
mode: number;
}
export type FileType = "file" | "dir";
export declare function realpath(target: string): Promise<string>;
export declare function readdirp(folder: string): Promise<FileEntry[]>;
export declare function getFileEntry(target: string): Promise<FileEntry>;
export declare function ensureFolder(folder: string): Promise<{
isDirectory: boolean;
isSymbolicLink: boolean;
realpath?: string;
}>;
export declare function pathExists(target: string): Promise<boolean>;
export declare function rimraf(target: string): Promise<void>;
export declare function isRootPath(target: string): boolean;