Comparing version 1.6.5 to 1.6.6
@@ -57,3 +57,3 @@ | ||
inner.list = function (path) { | ||
return Q.when(attenuate(path), function (path) { | ||
return attenuate(path).then(function (path) { | ||
return outer.list(path.outer); | ||
@@ -66,3 +66,3 @@ }).then(null, function (reason) { | ||
inner.open = function (path, flags, charset) { | ||
return Q.when(attenuate(path), function (path) { | ||
return attenuate(path).then(function (path) { | ||
return outer.open(path.outer, flags, charset); | ||
@@ -75,3 +75,3 @@ }).then(null, function (reason) { | ||
inner.stat = function (path) { | ||
return Q.when(attenuate(path), function (path) { | ||
return attenuate(path).then(function (path) { | ||
return outer.stat(path.outer); | ||
@@ -84,3 +84,3 @@ }).then(null, function (reason) { | ||
inner.canonical = function (path) { | ||
return Q.when(attenuate(path), function (path) { | ||
return attenuate(path).then(function (path) { | ||
return path.inner; | ||
@@ -92,2 +92,10 @@ }).then(null, function (reason) { | ||
inner.makeDirectory = function (path) { | ||
return attenuate(path).then(function (path) { | ||
return outer.makeDirectory(path.outer); | ||
}).catch(function (error) { | ||
throw new Error("Can't make directory " + JSON.stringify(path)); | ||
}); | ||
}; | ||
return Q.when(outer.canonical(root), function (_root) { | ||
@@ -94,0 +102,0 @@ root = _root; |
{ | ||
"name": "q-io", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "IO using Q promises", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/kriskowal/q-io/", |
Sorry, the diff of this file is not supported yet
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
2960665
123
8097