ctrlshiftleft
Version:
AI-powered toolkit for embedding QA and security testing into development workflows
31 lines (30 loc) • 985 B
TypeScript
/**
* Check if a source path is valid
* @param sourcePath Path to check
* @returns True if path exists and is readable
*/
export declare function isValidSourcePath(sourcePath: string): Promise<boolean>;
/**
* Check if a test path is valid
* @param testPath Path to check
* @returns True if path exists and is readable
*/
export declare function isValidTestPath(testPath: string): Promise<boolean>;
/**
* Ensure a directory exists, creating it if necessary
* @param dirPath Directory path to ensure
*/
export declare function ensureDirectoryExists(dirPath: string): Promise<void>;
/**
* Get relative path between two absolute paths
* @param from Source path
* @param to Target path
* @returns Relative path
*/
export declare function getRelativePath(from: string, to: string): string;
/**
* Get base name of a file without extension
* @param filePath File path
* @returns Base name without extension
*/
export declare function getBaseName(filePath: string): string;