Merge remote-tracking branch 'origin/develop' into pc/backups-ui-fixes
This commit is contained in:
commit
72e47f3f5d
|
@ -1,5 +1,6 @@
|
||||||
const { join } = require("path")
|
const { join } = require("path")
|
||||||
const { tmpdir } = require("os")
|
const { tmpdir } = require("os")
|
||||||
|
const fs = require("fs")
|
||||||
const env = require("../environment")
|
const env = require("../environment")
|
||||||
|
|
||||||
/****************************************************
|
/****************************************************
|
||||||
|
@ -16,6 +17,11 @@ exports.ObjectStoreBuckets = {
|
||||||
PLUGINS: env.PLUGIN_BUCKET_NAME,
|
PLUGINS: env.PLUGIN_BUCKET_NAME,
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.budibaseTempDir = function () {
|
const bbTmp = join(tmpdir(), ".budibase")
|
||||||
return join(tmpdir(), ".budibase")
|
if (!fs.existsSync(bbTmp)) {
|
||||||
|
fs.mkdirSync(bbTmp)
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.budibaseTempDir = function () {
|
||||||
|
return bbTmp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue