Skip to content
Browse files

Fixed 'path.exist' calls.

  • Loading branch information...
1 parent 1f99200 commit aa14e27fde878df81db25c8bd065ee563c3c20bb @akoenig akoenig committed Dec 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/connect-session-file.js
View
4 lib/connect-session-file.js
@@ -112,7 +112,7 @@ FileSessionStore.prototype.get = function(sid, fn) {
if( printDebug )
util.log(serial + ' get [' + fileName + ']');
- path.exists( filePath, function (exists) {
+ fs.exists( filePath, function (exists) {
if( exists ){
fs.readFile( filePath, function (err, data) {
if(err || data.length <= 0){
@@ -180,7 +180,7 @@ FileSessionStore.prototype.destroy = function (sid, fn) {
var filePath = path.join( this.path, fileName );
fn = fn || function () {};
- path.exists( filePath, function (exists) {
+ fs.exists( filePath, function (exists) {
if( exists ) {
fs.unlink( filePath, function (err, data) {
fn();

0 comments on commit aa14e27

Please sign in to comment.
Something went wrong with that request. Please try again.