mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(put) add checkArgs
This commit is contained in:
parent
3486b48261
commit
83ad300b1c
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,8 @@
|
|||
onSave = Util.exec.with(onDone, 'save'),
|
||||
OnMakeDir = Util.exec.with(onDone, 'make dir');
|
||||
|
||||
Util.checkArgs(arguments, ['query', 'name', 'reqdStream', 'callback']);
|
||||
|
||||
switch(query) {
|
||||
default:
|
||||
pipe.create(readStream, name, onSave);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue