mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(package) mellow v1.0.0
This commit is contained in:
parent
919e87315e
commit
44abe48661
4 changed files with 11 additions and 11 deletions
|
|
@ -195,8 +195,8 @@
|
|||
callback(error);
|
||||
|
||||
} else {
|
||||
files.from = mellow.convertPath(files.from);
|
||||
files.to = mellow.convertPath(files.to);
|
||||
files.from = mellow.pathToWin(files.from);
|
||||
files.to = mellow.pathToWin(files.to);
|
||||
|
||||
if (files.names)
|
||||
data = files.names.slice();
|
||||
|
|
@ -224,8 +224,8 @@
|
|||
error = getWin32RootMsg('from');
|
||||
callback(error);
|
||||
} else {
|
||||
files.from = mellow.convertPath(files.from);
|
||||
files.to = mellow.convertPath(files.to);
|
||||
files.from = mellow.pathToWin(files.from);
|
||||
files.to = mellow.pathToWin(files.to);
|
||||
|
||||
data = files.names.slice();
|
||||
copyFiles(files, flop.copy, function(error) {
|
||||
|
|
@ -240,10 +240,10 @@
|
|||
if (!files.from) {
|
||||
callback(body);
|
||||
} else {
|
||||
from = mellow.convertPath(files.from);
|
||||
from = mellow.pathToWin(files.from);
|
||||
|
||||
if (files.to)
|
||||
to = mellow.convertPath(files.to);
|
||||
to = mellow.pathToWin(files.to);
|
||||
else
|
||||
to = from + '.gz';
|
||||
|
||||
|
|
@ -260,10 +260,10 @@
|
|||
if (!files.from) {
|
||||
callback(body);
|
||||
} else {
|
||||
from = mellow.convertPath(files.from);
|
||||
from = mellow.pathToWin(files.from);
|
||||
|
||||
if (files.to)
|
||||
to = mellow.convertPath(files.to);
|
||||
to = mellow.pathToWin(files.to);
|
||||
else
|
||||
['.zip', '.tar.gz', '.gz'].forEach(function(str) {
|
||||
to = files.from.replace(str);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
var query,
|
||||
method = request.method;
|
||||
|
||||
name = mellow.convertPath(name);
|
||||
name = mellow.pathToWin(name);
|
||||
|
||||
switch(method) {
|
||||
case 'GET':
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
ponse.sendFile(p);
|
||||
} else if (isFS) {
|
||||
name = name.replace(CloudFunc.FS, '') || '/';
|
||||
path = mellow.convertPath(name);
|
||||
path = mellow.pathToWin(name);
|
||||
|
||||
mellow.read(path, function(error, dir) {
|
||||
if (dir)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"jag": "~1.0.0",
|
||||
"join-io": "~1.3.0",
|
||||
"marked": "~0.3.2",
|
||||
"mellow": "~0.9.7",
|
||||
"mellow": "~1.0.0",
|
||||
"minify": "~1.4.0",
|
||||
"minimist": "~1.1.0",
|
||||
"mollify": "~1.0.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue