* Adds a directory to the zip archive, if it exists. * @param {string} sourcePath * @param {string} zipPath
(sourcePath, zipPath)
| 13 | * @param {string} zipPath |
| 14 | */ |
| 15 | function addLocalFolderIfExists(sourcePath, zipPath) { |
| 16 | if (fs.existsSync(sourcePath)) { |
| 17 | zip.addLocalFolder(sourcePath, zipPath); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Adds a file to the zip archive, if it exists. |
no outgoing calls
no test coverage detected