mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(size) size.get -> size
This commit is contained in:
parent
bbf8443b9c
commit
52142ed141
2 changed files with 3 additions and 3 deletions
|
|
@ -34,11 +34,11 @@
|
|||
|
||||
switch (type) {
|
||||
case 'size':
|
||||
size.get(path, callback);
|
||||
size(path, callback);
|
||||
break;
|
||||
|
||||
case 'size raw':
|
||||
size.get(path, { type: 'raw' }, callback);
|
||||
size(path, { type: 'raw' }, callback);
|
||||
break;
|
||||
|
||||
case 'time':
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
stat = fs.lstat;
|
||||
|
||||
exports.get = function(dir, options, callback) {
|
||||
module.exports = function(dir, options, callback) {
|
||||
var type, stopOnError,
|
||||
emitter = new EventEmitter(),
|
||||
total = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue