(directory: string)
| 59 | |
| 60 | // Function to recursively iterate through all files in a given path |
| 61 | function processDirectory(directory: string) { |
| 62 | fs.readdirSync(directory).forEach(file => { |
| 63 | let fullPath = path.join(directory, file); |
| 64 | if (fs.lstatSync(fullPath).isDirectory()) { |
| 65 | processDirectory(fullPath); |
| 66 | } else { |
| 67 | processFile(fullPath); |
| 68 | } |
| 69 | }); |
| 70 | } |
| 71 | // Function to process a single file |
| 72 | function processFile(filePath: string) { |
| 73 | fs.readFile(filePath, 'utf8', function(err, data) { |
no test coverage detected