Comparing version 1.3.2 to 1.4.0
11
fs.js
@@ -103,2 +103,13 @@ /** | ||
exports.move = function (source, target) { | ||
return Q.ninvoke(FS, "rename", String(source), String(target)) | ||
.fail(function (error) { | ||
error.message = ( | ||
"Can't move " + JSON.stringify(source) + " to " + | ||
JSON.stringify(target) + " because " + error.message | ||
); | ||
throw error; | ||
}); | ||
}; | ||
exports.makeDirectory = function (path, mode) { | ||
@@ -105,0 +116,0 @@ path = String(path); |
{ | ||
"name": "q-io", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "IO using Q promises", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/kriskowal/q-io/", |
@@ -57,2 +57,4 @@ | ||
### move(source, target) | ||
### link(source, taget) | ||
@@ -59,0 +61,0 @@ |
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
134295
3878
302