Comparing version 0.1.0 to 0.1.1
@@ -119,7 +119,6 @@ | ||
} | ||
fs.unlink(target, function (err) { | ||
if (err) { | ||
return onError(err); | ||
} | ||
return copyLink(resolvedPath, target); | ||
return rmFile(link, function () { | ||
process.nextTick(function () { | ||
copyLink(resolvedPath, target); | ||
}); | ||
}); | ||
@@ -134,3 +133,3 @@ }); | ||
if (/^EEXIST/.test(err.message)) { | ||
console.log('warn: a symlink could not be created at %s', target); | ||
console.log('warn: a symlink already exists at %s', target); | ||
finished++; | ||
@@ -137,0 +136,0 @@ return cb(); |
{ | ||
"name" : "ncp", | ||
"version" : "0.1.0", | ||
"version" : "0.1.1", | ||
"author": "AvianFlu <charlie@charlieistheman.com>", | ||
@@ -5,0 +5,0 @@ "description" : "Asynchronous recursive file copy utility.", |
@@ -7,6 +7,8 @@ # ncp - Asynchronous recursive file & directory copying | ||
Usage is simple: `ncp [source] [dest]` | ||
Usage is simple: `ncp [source] [dest] [concurrency limit]` | ||
If there are no errors, there will be no output. | ||
The 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time. | ||
If there are no errors, `ncp` will output `done.` when complete. | ||
## Programmatic usage | ||
@@ -19,2 +21,4 @@ | ||
ncp.limit = 16; | ||
ncp(source, destination, function (err) { | ||
@@ -21,0 +25,0 @@ if (err) { |
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
6367
31
139