(directoryPath: string)
| 83 | } |
| 84 | |
| 85 | function getFilesWithoutJsonExtension(directoryPath: string): string[] { |
| 86 | if (!fs.existsSync(directoryPath)) { |
| 87 | return []; |
| 88 | } |
| 89 | |
| 90 | const files = fs.readdirSync(directoryPath); |
| 91 | return files.map(rstrip_json); |
| 92 | } |
| 93 | |
| 94 | function isAffirmative(inputString: string): boolean { |
| 95 | const affirmativeValues = new Set(['true', 'yes', 'y', '1', 'yeah', 'yep', 'sure', 'ok', 'okay', 'affirmative', 't']); |