Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

path.exists -> fs.exists with node 0.8.x

  • Loading branch information...
commit 7633d3d6a33f1fa5093a6fe763d37bc36ff0b487 1 parent 0b96c29
Saadiq Rodgers-King authored
Showing with 4 additions and 6 deletions.
  1. +1 −1  lib/atomify.js
  2. +2 −3 lib/config.js
  3. +1 −2  lib/queue.js
2  lib/atomify.js
View
@@ -52,7 +52,7 @@ exports.run = function(file, callback) {
art = data[file].art;
}
- path.exists(art, function (exists) {
+ fs.exists(art, function (exists) {
if (exists) cmd += ' --artwork \"'+art+'\"';
//winston.debug(cmd);
5 lib/config.js
View
@@ -2,7 +2,6 @@ var nconf = require('nconf'),
winston = require('winston').cli(),
cliff = require('cliff'),
fs = require('fs'),
- path = require('path'),
prompt = require('prompt'),
kutil = require('../lib/kutil.js');
@@ -23,7 +22,7 @@ function prepopMsg(key, msg, valid, warn) {
}
var path_warn = 'Path doesn\'t exist!';
function pathValidator(value) {
- return path.existsSync(value);
+ return fs.existsSync(value);
}
function hbPresetValidator(value) {
return value.match(/^[1234567]$/) ||
@@ -48,7 +47,7 @@ var hb_presets = [ '',
];
exports.required = function() {
- return !path.existsSync(kutil.config_file) || !nconf.get('handbrake_preset');
+ return !fs.existsSync(kutil.config_file) || !nconf.get('handbrake_preset');
};
exports.run = function() {
3  lib/queue.js
View
@@ -6,7 +6,6 @@ var async = require('async'),
neuron = require('neuron'),
spawn = require('child_process').spawn,
fs = require('fs'),
- path = require('path'),
argv = require('optimist').argv,
atomify = require('./atomify.js'),
kutil = require('./kutil.js');
@@ -84,7 +83,7 @@ function queueUp( file, callback ) {
if( valid ) {
winston.info("queueing: " + file);
- path.exists(kutil.outFile(file), function (exists) {
+ fs.exists(kutil.outFile(file), function (exists) {
if (!exists) manager.enqueue('transcode',file);
else if (argv.overwrite) {
winston.info("overwriting existing outfile");
Please sign in to comment.
Something went wrong with that request. Please try again.