mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
refactor(put) add flop
This commit is contained in:
parent
74a9aa2e49
commit
44671a8561
1 changed files with 4 additions and 4 deletions
|
|
@ -9,9 +9,8 @@
|
|||
dir = main.srvrequire('dir'),
|
||||
diff = main.diff,
|
||||
CloudFunc = main.cloudfunc,
|
||||
fse = {
|
||||
mkdirs : main.require('mkdirp') || fs.mkdir.bind(fs),
|
||||
};
|
||||
DIR = '../../',
|
||||
flop = require(DIR + 'flop');
|
||||
|
||||
exports.onPut = onPut;
|
||||
|
||||
|
|
@ -22,7 +21,7 @@
|
|||
|
||||
switch(query) {
|
||||
case 'dir':
|
||||
fse.mkdirs(name, function(error) {
|
||||
flop.create(name, 'dir', function(error) {
|
||||
var msg;
|
||||
|
||||
if (!error)
|
||||
|
|
@ -30,6 +29,7 @@
|
|||
|
||||
func(error, msg);
|
||||
});
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue