feature(package) mellow v1.0.0

This commit is contained in:
coderaiser 2015-01-31 10:20:20 -05:00
parent 919e87315e
commit 44abe48661
4 changed files with 11 additions and 11 deletions

View file

@ -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);

View file

@ -19,7 +19,7 @@
var query,
method = request.method;
name = mellow.convertPath(name);
name = mellow.pathToWin(name);
switch(method) {
case 'GET':

View file

@ -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)

View file

@ -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",