(isoFilename: string)
| 20 | let rv: FileSystem[] = []; |
| 21 | let countdown = isoFiles.length; |
| 22 | function fetchIso(isoFilename: string): void { |
| 23 | fs.readFile(isoFilename, (e, data?) => { |
| 24 | if (e) throw e; |
| 25 | IsoFS.Create({ |
| 26 | data: data, |
| 27 | name: isoFilename |
| 28 | }, (e, fs?) => { |
| 29 | if (e) { |
| 30 | throw e; |
| 31 | } |
| 32 | rv.push(fs); |
| 33 | countdown--; |
| 34 | if (countdown === 0) { |
| 35 | cb('IsoFS', rv); |
| 36 | } |
| 37 | }); |
| 38 | }); |
| 39 | } |
| 40 | for (let i = 0; i < isoFiles.length; i++) { |
| 41 | fetchIso(`${isodir}/${isoFiles[i]}`); |
| 42 | } |
no test coverage detected