9 lines
344 B
TypeScript
9 lines
344 B
TypeScript
/**
|
|
* Cross-platform check if a path is inside .sisyphus/ directory.
|
|
* Handles both forward slashes (Unix) and backslashes (Windows).
|
|
* Uses path segment matching (not substring) to avoid false positives like "not-sisyphus/file.txt"
|
|
*/
|
|
export function isSisyphusPath(filePath: string): boolean {
|
|
return /\.sisyphus[/\\]/.test(filePath)
|
|
}
|