From 4656bc826850fce23170f2f1c0a1a7d9cbb56374 Mon Sep 17 00:00:00 2001 From: Jeff Peoples Date: Tue, 26 May 2015 19:20:53 -0700 Subject: [PATCH] (FIX) Changed path.exists to fs.exists; path.exists is deprecated and no longer works in later versions of node. --- RecordRTC/RecordRTC-over-Socketio/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecordRTC/RecordRTC-over-Socketio/server.js b/RecordRTC/RecordRTC-over-Socketio/server.js index 9d45cf17..b50181a4 100644 --- a/RecordRTC/RecordRTC-over-Socketio/server.js +++ b/RecordRTC/RecordRTC-over-Socketio/server.js @@ -18,7 +18,7 @@ var app = http.createServer(function (request, response) { var uri = url.parse(request.url).pathname, filename = path.join(process.cwd(), uri); - path.exists(filename, function (exists) { + fs.exists(filename, function (exists) { if (!exists) { response.writeHead(404, { "Content-Type": "text/plain"