« get me outta code hell

Delete temporary files when done with them - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/downloaders.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-08-07 17:08:37 -0300
committerFlorrie <towerofnix@gmail.com>2017-08-07 17:08:42 -0300
commite70c189576a80a162a3183172aac74f288e66ccd (patch)
treedff6fd7f5b8602200e7b6a12f4c490f30e0858a2 /src/downloaders.js
parent7cd692dc759b167967b83d2333d52169d2b45045 (diff)
Delete temporary files when done with them
(safeUnlink isn't really tested)
Diffstat (limited to 'src/downloaders.js')
-rw-r--r--src/downloaders.js7
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()