mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(get) add commander
This commit is contained in:
parent
bd17fc22f9
commit
90b3af9a89
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
dir = require(DIR_SERVER + 'dir'),
|
||||
time = require(DIR_SERVER + 'time'),
|
||||
pipe = require(DIR_SERVER + 'pipe'),
|
||||
commander = require(DIR_SERVER + 'commander'),
|
||||
CloudFunc = require(DIR + 'cloudfunc'),
|
||||
Util = require(DIR + 'util');
|
||||
|
||||
|
|
@ -61,7 +62,7 @@
|
|||
|
||||
default:
|
||||
dir.isDir(name, function(error, isDir) {
|
||||
var getDirContent = main.commander.getDirContent;
|
||||
var getDirContent = commander.getDirContent;
|
||||
|
||||
if (isDir && !error)
|
||||
getDirContent(name, func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue