From 91f391ea0d7b69a6e396791540b3fcdd98eb597d Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 05:33:01 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- tools/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate.js b/tools/validate.js index 585e91b..0cbe603 100644 --- a/tools/validate.js +++ b/tools/validate.js @@ -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); }