Skip to content

Commit

Permalink
[fix] path.existsSync was moved to fs.existsSync
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Jul 7, 2012
1 parent 12a824f commit 88ff9e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/node_functions.js
Expand Up @@ -41,7 +41,7 @@
//(file-exists? filename) procedure
define_node_libfunc("file-exists?", 1, 1, function(ar){
assert_string(ar[0]);
return node.path.existsSync(ar[0]);
return node.fs.existsSync(ar[0]);
});

//(delete-file filename) procedure
Expand Down
2 changes: 1 addition & 1 deletion test/node_functions.js
Expand Up @@ -36,7 +36,7 @@ var tests = {

ev('(delete-file "'+test_file_path+'")');

assert.ok(!path.existsSync(test_file_path));
assert.ok(!fs.existsSync(test_file_path));
},

// R6RS stdlib 10
Expand Down

0 comments on commit 88ff9e8

Please sign in to comment.