(dirPath: string)
| 8 | |
| 9 | // Utility function to ensure a directory exists |
| 10 | const ensureDir = (dirPath: string): string => { |
| 11 | if (!existsSync(dirPath)) { |
| 12 | mkdirSync(dirPath, { recursive: true }); |
| 13 | } |
| 14 | return dirPath; |
| 15 | }; |
| 16 | |
| 17 | // ----------- We need path traverse Protection after we decide how we read and store the file !!!!!!!!!!!!! ------------ |
| 18 | // ------------------------------------------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected