Comparing version 1.7.3 to 1.8.0
22
fs.js
@@ -107,17 +107,9 @@ /** | ||
target = String(target); | ||
return exports.exists(target) | ||
.then(function (exists) { | ||
if (exists) { | ||
var error = new Error("Can't move over existing entry " + target); | ||
error.code = "EEXISTS"; | ||
throw error; | ||
} | ||
return Q.ninvoke(FS, "rename", source, target) | ||
.fail(function (error) { | ||
error.message = ( | ||
"Can't move " + JSON.stringify(source) + " to " + | ||
JSON.stringify(target) + " because " + error.message | ||
); | ||
throw error; | ||
}); | ||
return Q.ninvoke(FS, "rename", source, target) | ||
.fail(function (error) { | ||
error.message = ( | ||
"Can't move " + JSON.stringify(source) + " to " + | ||
JSON.stringify(target) + " because " + error.message | ||
); | ||
throw error; | ||
}); | ||
@@ -124,0 +116,0 @@ }; |
{ | ||
"name": "q-io", | ||
"version": "1.7.3", | ||
"version": "1.8.0", | ||
"description": "IO using Q promises", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/kriskowal/q-io/", |
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
3198007
8146