tav-media
Version:
Cross platform media editing framework
25 lines (24 loc) • 718 B
TypeScript
/**
* Utils for file reading and writing files.
* @hideconstructor
*/
export declare class File {
/**
* Read the string content of a file.
* @param path The path of the file.
* @returns The content of the file.
*/
static readText(path: string): string;
/**
* Write a string to a file.
* @param content The string content to write.
* @param path The path of the file.
*/
static writeText(content: string, path: string): void;
/**
* Unzip a zip file to specified path.
* @param zipPath The path of the zip file.
* @param resultPath The directory to extract the zip file.
*/
static unzip(zipPath: string, resultPath: string): void;
}