feature(flop) mv, cp -> move, copy

This commit is contained in:
coderaiser 2014-06-20 03:45:30 -04:00
parent a32e431a6d
commit dc2a0ca3e6
2 changed files with 6 additions and 6 deletions

View file

@ -113,7 +113,7 @@
});
};
exports.mv = function(from, to, callback) {
exports.move = function(from, to, callback) {
fs.rename(from, to, function(error) {
var isExDev = error && error.code === 'EXDEV';
@ -126,7 +126,7 @@
});
};
exports.cp = function(from, to, type, callback) {
exports.copy = function(from, to, type, callback) {
var options;
if (!callback) {

View file

@ -283,7 +283,7 @@
else
data = files;
copyFiles(files, flop.mv, function(error) {
copyFiles(files, flop.move, function(error) {
if (error)
sendError(params, error);
else
@ -298,7 +298,7 @@
sendError(params, p.data);
else {
files.namesAll = Util.slice(files.names);
copyFiles(files, flop.cp, function(error) {
copyFiles(files, flop.copy, function(error) {
if (error)
sendError(params, error);
else
@ -314,7 +314,7 @@
from = files.from;
to = files.to || from + '.zip';
flop.cp(from, to, 'zip', function(error) {
flop.copy(from, to, 'zip', function(error) {
var name = path.basename(files.from);
if (error)
@ -332,7 +332,7 @@
from = files.from;
to = files.to || Util.rmStrOnce(files.from, ['.zip', '.gzip']);
flop.cp(from, to, 'unzip', function(error) {
flop.copy(from, to, 'unzip', function(error) {
var name = path.basename(files.from);
if (error)