(self)
| 626 | } |
| 627 | |
| 628 | function cleanupOpenFiles(self) { |
| 629 | self.openedFiles.forEach(function(internalFile) { |
| 630 | // since fd slicer autoClose is true, destroying the only write stream |
| 631 | // is guaranteed by the API to close the fd |
| 632 | internalFile.ws.destroy(); |
| 633 | |
| 634 | fs.unlink(internalFile.publicFile.path, function(err) { |
| 635 | if (err) self.handleError(err); |
| 636 | }); |
| 637 | }); |
| 638 | self.openedFiles = []; |
| 639 | } |
| 640 | |
| 641 | function holdEmitQueue(self, eventEmitter) { |
| 642 | var item = { cb: null, ee: eventEmitter, err: null } |
no outgoing calls
no test coverage detected
searching dependent graphs…