Skip to content
Permalink
Browse files

Do not use deprecated os.tmpDir (#104)

  • Loading branch information...
dotchev authored and alexpenev-s committed Oct 26, 2017
1 parent 35b9c2b commit fd6f5c7e1561d6e75e3f329ca9ab6f0d5f1997f6
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 examples/app6.js
  3. +1 −1 examples/app7.js
  4. +1 −1 lib/util/index.js
@@ -7,3 +7,4 @@ hdb.js
examples/test*.js
npm-debug.log
tmp
/test/db/config.json*
@@ -25,7 +25,7 @@ var fstream = require('fstream');
var client = require('./client');

var sql = 'select NAME, DATA from TEST_LOBS';
var dirname = path.join(os.tmpDir(), process.argv[2] || '.');
var dirname = path.join(os.tmpdir(), process.argv[2] || '.');

async.waterfall([connect, prepare, execute, copyRepo], done);

@@ -21,7 +21,7 @@ var path = require('path');
var async = require('async');
var client = require('./client');
var schema = client.get('user');
var tmpdir = os.tmpDir();
var tmpdir = os.tmpdir();
var dirname = path.join(__dirname, '..', 'test', 'fixtures', 'img');

async.waterfall([connect, init, prepare, insert, select, fetch, write], done);
@@ -52,7 +52,7 @@ var debug = exports.debuglog('hdb_util');
exports.tracefile = function tracefile() {
var timestamp = Math.floor(Date.now() / 1000);
var filename = 'hdb.trace.' + timestamp + '.log';
return path.join(os.tmpDir(), filename);
return path.join(os.tmpdir(), filename);
};

exports._appendFileSync = fs.appendFileSync;

0 comments on commit fd6f5c7

Please sign in to comment.
You can’t perform that action at this time.