[fix] path.existsSync was moved to fs.existsSync

This commit is contained in:
Farrin Reid 2012-07-07 05:33:01 -08:00
parent 39dce5b249
commit 91f391ea0d
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if (process.argv.length < 3) return usage();
var basename = process.argv.slice(2).shift(),
indexFile = path.join(WNdb.path, basename);
if (!path.existsSync(indexFile)) {
if (!fs.existsSync(indexFile)) {
console.error('Error: no such file %s', indexFile);
process.exit(10);
}