Skip to content

Commit

Permalink
Removed #fileInfo(), use #head() instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
slaskis committed Apr 23, 2012
1 parent ee23d86 commit 2480282
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/knox/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,19 +282,6 @@ Client.prototype.headFile = function(filename, headers, fn){
}).end();
};

/**
* Obtains information about uploaded object.
* @param {String} filename
* @param {Object|Function} headers
* @param {Function} fn
*/
Client.prototype.fileInfo = function(filename, headers, fn){
this.headFile(filename, headers, function(res){
if(res.statusCode == 200) fn({'etag': JSON.parse(res.headers['etag']), 'size': JSON.parse(res.headers['content-length']), 'modified': res.headers['last-modified']});
else fn(null);
});
};

/**
* DELETE `filename` with optional `headers.
*
Expand Down

0 comments on commit 2480282

Please sign in to comment.