Comparing version 3.0.5 to 3.0.6
## History | ||
- v3.0.6 November 25, 2013 | ||
- Only unlink if the file exists | ||
- v3.0.5 November 17, 2013 | ||
@@ -4,0 +7,0 @@ - Use [graceful-fs](https://github.com/isaacs/node-graceful-fs) under the hood, along with our limiting abilities to help avoid even more problems |
@@ -163,6 +163,11 @@ // Generated by CoffeeScript 1.6.3 | ||
unlink: function(path, next) { | ||
safefs.openFile(function(closeFile) { | ||
return fsUtil.unlink(path, function(err) { | ||
closeFile(); | ||
return next(err); | ||
safefs.exists(path, function(exists) { | ||
if (exists === false) { | ||
return next(); | ||
} | ||
return safefs.openFile(function(closeFile) { | ||
return fsUtil.unlink(path, function(err) { | ||
closeFile(); | ||
return next(err); | ||
}); | ||
}); | ||
@@ -169,0 +174,0 @@ }); |
{ | ||
"title": "Safe FS", | ||
"name": "safefs", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Stop getting EMFILE errors! Open only as many files as the operating system supports.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/safefs", |
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
34297
210