Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
stats -> stat
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Sep 2, 2012
1 parent 9b88a07 commit c90f17b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -20,10 +20,10 @@ $ git clone git://github.com/tommy351/qfs.git

```
// Get the stats synchronously
qfs(path).stats();
qfs(path).stat();
// Get the stats asynchronously
qfs(path).stats(function(err, stats){
qfs(path).stat(function(err, stats){
...
});
```
Expand Down
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -65,9 +65,9 @@ function qfs(path){
this.ext = pathFn.extname(path);
};

qfs.prototype.stats = function(callback){
qfs.prototype.stat = function(callback){
if (typeof callback === 'function'){
fs.stats(this.path, callback.bind(this));
fs.stat(this.path, callback.bind(this));
return this;
} else {
return fs.statSync(this.path);
Expand Down

0 comments on commit c90f17b

Please sign in to comment.