This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| const ANOTHER_DEST_PATH = '/another/path'; | |
| // hook called when the final report is generated. End of POST /render. | |
| function afterRender (req, res, err, reportPath, reportName, stats, callback) { | |
| if (err) { | |
| return callback(err); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require('path'); | |
| var fs = require('fs'); | |
| var ZIP = require('zip'); | |
| var zipfile = require('zipfile'); | |
| var filePath1 = path.resolve('./zipfile1.zip'); | |
| var filePath2 = path.resolve('./zipfile2.zip'); | |
| var nbExecuted = 14; | |
| /***********************************************************************************/ | |
| /************************************ ZIP ******************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Platform | |
| ---------------------------------- | |
| Ubuntu 12.04 LTS 64bits | |
| How it works? | |
| ---------------------------------- | |
| 1. Execute a simple server: | |
| >> node test.js |