mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
chore(rest) lFiles -> files
This commit is contained in:
parent
83ed28c686
commit
80c73d6ae8
1 changed files with 7 additions and 7 deletions
|
|
@ -223,16 +223,16 @@
|
|||
});
|
||||
});
|
||||
else if (query === 'files') {
|
||||
getBody(p.request, function(pBody) {
|
||||
getBody(p.request, function(body) {
|
||||
var i, name,
|
||||
lFiles = Util.parseJSON(pBody),
|
||||
n = lFiles.length,
|
||||
lDir = p.name,
|
||||
files = Util.parseJSON(body),
|
||||
n = files.length,
|
||||
dir = p.name,
|
||||
log = Util.log.bind(Util),
|
||||
lAssync = 0;
|
||||
assync = 0;
|
||||
|
||||
function onStat(name, error, stat) {
|
||||
++lAssync;
|
||||
++assync;
|
||||
|
||||
checkSendError(error, params, function() {
|
||||
if (stat.isDirectory())
|
||||
|
|
@ -247,7 +247,7 @@
|
|||
}
|
||||
|
||||
for (i = 0; i < n; i ++) {
|
||||
name = lDir + lFiles[i];
|
||||
name = dir + files[i];
|
||||
|
||||
Util.log(name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue