prostore.glob-utils
Advanced tools
Comparing version 0.2.0 to 0.2.1
14
index.js
@@ -126,8 +126,10 @@ 'use strict'; | ||
function _copy(cwd, files, target, cb) { | ||
fs.mkdirp(target, function(err) { | ||
if (err) return cb(err); | ||
async.each(files, function(file, cb) { | ||
fs.copy(path.join(cwd, file), target, cb); | ||
}, cb); | ||
}); | ||
async.each(files, function(file, cb) { | ||
var srcFile = path.join(cwd, file.path) | ||
, dstFile = path.join(target, file.path); | ||
fs.mkdirp(path.dirname(dstFile), function(err) { | ||
if (err) return cb(err); | ||
fs.copy(srcFile, dstFile, cb); | ||
}); | ||
}, cb); | ||
} | ||
@@ -134,0 +136,0 @@ |
{ | ||
"name": "prostore.glob-utils", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Glob Utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7797
164