* Check if file/directory exists
(filePath: string)
| 845 | * Check if file/directory exists |
| 846 | */ |
| 847 | async function fileExists(filePath: string): Promise<boolean> { |
| 848 | try { |
| 849 | await fs.access(filePath); |
| 850 | return true; |
| 851 | } catch { |
| 852 | return false; |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | /** |
| 857 | * Migrate legacy file structure to .codebase-context/ folder. |
no outgoing calls
no test coverage detected