MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / getFilesWithoutJsonExtension

Function getFilesWithoutJsonExtension

js/botasaurus-js/src/cache.ts:85–92  ·  view source on GitHub ↗
(directoryPath: string)

Source from the content-addressed store, hash-verified

83}
84
85function 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
94function isAffirmative(inputString: string): boolean {
95 const affirmativeValues = new Set(['true', 'yes', 'y', '1', 'yeah', 'yep', 'sure', 'ok', 'okay', 'affirmative', 't']);

Callers 1

getCachedFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected