mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
refactor(cloudcmd) sendContent -> getContent
This commit is contained in:
parent
9ecf001945
commit
d86a13cf72
1 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@
|
|||
main.sendFile(params);
|
||||
} else if (isFS) {
|
||||
query = main.getQuery(params.request),
|
||||
sendContent(name, query, function(name, error, data, isFile) {
|
||||
getContent(name, query, function(name, error, data, isFile) {
|
||||
if (error)
|
||||
main.sendError(params, error);
|
||||
else if (isFile) {
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
return ret;
|
||||
}
|
||||
|
||||
function sendContent(name, query, callback) {
|
||||
function getContent(name, query, callback) {
|
||||
name = Util.removeStrOneTime(name, CloudFunc.FS) || main.SLASH;
|
||||
|
||||
fs.stat(name, function(error, stat) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue