You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
343 B
20 lines
343 B
var os = require('os')
|
|
var path = require('path')
|
|
var fs = require('fs')
|
|
|
|
function create (opts = {}) {
|
|
var mnt = path.join(os.tmpdir(), 'fuse-bindings-' + process.pid + '-' + Date.now())
|
|
|
|
if (!opts.doNotCreate) {
|
|
try {
|
|
fs.mkdirSync(mnt)
|
|
} catch (err) {
|
|
// do nothing
|
|
}
|
|
}
|
|
|
|
return mnt
|
|
}
|
|
|
|
module.exports = create
|