From 55458a85c03c5386d3317ecdc190da10e7ef1049 Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Fri, 6 Jul 2012 20:27:07 -0800 Subject: [PATCH] [fix] fs.exists was moved to fs.exists --- lib/mpyq.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mpyq.js b/lib/mpyq.js index 2516a1c..2026754 100644 --- a/lib/mpyq.js +++ b/lib/mpyq.js @@ -75,7 +75,7 @@ module.exports.extractMap = function (filename, minimapFile, deleteFile, callbac module.exports.getMapThumbnail = function(imagePath, mapFilename, minimapFilename, region, callback) { process.nextTick(function() { - path.exists(imagePath, function(exists) { + fs.exists(imagePath, function(exists) { if(!exists) { module.exports.downloadMap(region.toLowerCase(), mapFilename, function(err, dlPath) { onDownloadedMap(err, dlPath, callback); }); }