diff options
author | Florrie <towerofnix@gmail.com> | 2017-08-07 17:08:37 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-08-07 17:08:42 -0300 |
commit | e70c189576a80a162a3183172aac74f288e66ccd (patch) | |
tree | dff6fd7f5b8602200e7b6a12f4c490f30e0858a2 /src/downloaders.js | |
parent | 7cd692dc759b167967b83d2333d52169d2b45045 (diff) |
Delete temporary files when done with them
(safeUnlink isn't really tested)
Diffstat (limited to 'src/downloaders.js')
-rw-r--r-- | src/downloaders.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/downloaders.js b/src/downloaders.js index b9cc33d..2df6655 100644 --- a/src/downloaders.js +++ b/src/downloaders.js @@ -14,6 +14,13 @@ const { promisify } = require('util') const writeFile = promisify(fs.writeFile) const copyFile = fse.copy +// Pseudo-tempy!! +/* +const tempy = { + directory: () => './tempy-fake' +} +*/ + function makeHTTPDownloader() { return function(arg) { const dir = tempy.directory() |