(filePath)
| 53 | } |
| 54 | |
| 55 | function exists(filePath) { |
| 56 | try { |
| 57 | return fs.existsSync(filePath); |
| 58 | } catch { |
| 59 | return false; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function listExisting(projectRoot, relativePaths) { |
| 64 | return relativePaths.filter((relativePath) => exists(path.join(projectRoot, relativePath))); |