forked from zhurui/management
10 lines
225 B
JavaScript
10 lines
225 B
JavaScript
|
'use strict';
|
||
|
var path = require('path');
|
||
|
var os = require('os');
|
||
|
var tmpdir = (os.tmpdir || os.tmpDir)();
|
||
|
var uuid = require('uuid');
|
||
|
|
||
|
module.exports = function (ext) {
|
||
|
return path.join(tmpdir, uuid.v4() + (ext || ''));
|
||
|
};
|