summaryrefslogtreecommitdiff
path: root/server/js/paths.js
diff options
context:
space:
mode:
authorRafael Marçalo <raroma09@gmail.com>2022-10-29 14:51:03 +0100
committerRafael Marçalo <raroma09@gmail.com>2022-10-29 14:51:03 +0100
commit5d6081e34777c8b99a3e9f2ed42a6de0732a4ff3 (patch)
tree2c64156dff1a1c3f2062d0a0ef156190b831a5fd /server/js/paths.js
parent48591e37a58d5349214e0bfee9f76e201d45e7bf (diff)
Added config file handling functionality
Diffstat (limited to 'server/js/paths.js')
-rw-r--r--server/js/paths.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/js/paths.js b/server/js/paths.js
index ee10807..3bf6824 100644
--- a/server/js/paths.js
+++ b/server/js/paths.js
@@ -28,7 +28,7 @@ const envPaths = {
HOME: os.homedir(),
DATA: process.env.APPDATA || ensureFolder(path.join(os.homedir(), 'AppData', 'Roaming')),
CONFIG: process.env.APPDATA || ensureFolder(path.join(os.homedir(), 'AppData', 'Roaming')),
- CACHE: process.env.TEMP || process.env.TMP || ensureFolder(path.join(process.env.LOCALAPPDATA, 'Temp'))
+ CACHE: process.env.TEMP || process.env.TMP || path.join(process.env.LOCALAPPDATA, 'Temp') || ensureFolder(path.join(os.homedir(), 'AppData', 'Local', 'Temp'))
}
}