mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(rest) name -> path.basename(name)
This commit is contained in:
parent
f2f452b141
commit
68515f81bb
1 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
var main = global.cloudcmd.main,
|
||||
fs = main.fs,
|
||||
path = main.path,
|
||||
Util = main.util,
|
||||
CloudFunc = main.cloudfunc,
|
||||
dir = main.dir,
|
||||
|
|
@ -175,7 +176,8 @@
|
|||
lWriteStream.on ('error', lError);
|
||||
p.request.on('error', lError);
|
||||
p.request.on('end', function(){
|
||||
main.sendResponse(pParams, 'edit: save(' + p.name +')');
|
||||
var lName = path.basename(p.name);
|
||||
main.sendResponse(pParams, 'edit: save(' + lName +')');
|
||||
});
|
||||
|
||||
//p.request.pipe(process.stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue