Skip to content

Commit 59b3885

Browse files
committed
Use OS based tmp dir
We should use the official OS temp directory instead of an own one, to not run into conflicts. Also various dependencies already use the OS temp directory, which makes it pointless to use a different for our internal purposes then. This commit provides the changes needed to use the OS tmp directory by default. Signed-off-by: Sheogorath <[email protected]>
1 parent 637f955 commit 59b3885

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/config/default.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
22

3+
const os = require('os')
4+
35
module.exports = {
46
domain: '',
57
urlPath: '',
@@ -39,7 +41,7 @@ module.exports = {
3941
dhParamPath: '',
4042
// other path
4143
viewPath: './public/views',
42-
tmpPath: './tmp',
44+
tmpPath: os.tmpdir(),
4345
defaultNotePath: './public/default.md',
4446
docsPath: './public/docs',
4547
uploadsPath: './public/uploads',

tmp/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)