tdpw
Version:
CLI tool for uploading Playwright test reports to TestDino platform with TestDino storage support
31 lines • 926 B
TypeScript
/**
* Validate and resolve a file or directory path.
*/
export declare function resolvePath(p: string, context: string): string;
/**
* Check if a path exists.
*/
export declare function exists(p: string): Promise<boolean>;
/**
* Check if the given path is a directory.
* Returns false if the path doesn't exist or is not accessible.
*/
export declare function isDirectory(p: string): Promise<boolean>;
/**
* Check if the given path is a file.
* Returns false if the path doesn't exist or is not accessible.
*/
export declare function isFile(p: string): Promise<boolean>;
/**
* Read directory contents and return full paths.
*/
export declare function readDir(p: string): Promise<string[]>;
/**
* Read file as text.
*/
export declare function readFile(p: string): Promise<string>;
/**
* Read file as Buffer.
*/
export declare function readFileBuffer(p: string): Promise<Buffer>;
//# sourceMappingURL=fs.d.ts.map