Comparing version 2.0.2 to 2.0.3
@@ -59,3 +59,3 @@ // Generated by CoffeeScript 1.6.2 | ||
if ((_ref4 = options.mode) == null) { | ||
options.mode = 0x1ff & (~process.umask()); | ||
options.mode = null; | ||
} | ||
@@ -68,3 +68,3 @@ safefs.exists(path, function(exists) { | ||
} | ||
parentPath = balUtilPaths.getParentPathSync(path); | ||
parentPath = safefs.getParentPathSync(path); | ||
return safefs.ensurePath(parentPath, options, function(err) { | ||
@@ -141,2 +141,5 @@ if (err) { | ||
} | ||
if (mode == null) { | ||
mode = 0x1ff & (~process.umask()); | ||
} | ||
safefs.openFile(function() { | ||
@@ -143,0 +146,0 @@ return fsUtil.mkdir(path, mode, function(err) { |
{ | ||
"name": "safefs", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Say goodbye to EMFILE errors! Open only as many files as the operating system supports", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/safefs", |
@@ -56,16 +56,21 @@ # Safe FS [![Build Status](https://secure.travis-ci.org/bevry/safefs.png?branch=master)](http://travis-ci.org/bevry/safefs) | ||
Arguments suffixed with `?` are optional. | ||
- Custom methods: | ||
- `openFile(next)` | ||
- `closeFile()` | ||
- `getParentPathSync(path)` | ||
- `ensurePath(path, options?, next)` - will attempt to ensure the path exists, options: | ||
- `mode` - defaults to `null` | ||
- Wrapped fs/path methods: | ||
- `readFile` | ||
- `writeFile` | ||
- `appendFile` | ||
- `mkdir` | ||
- `stat` | ||
- `readdir` | ||
- `unlink` | ||
- `rmdir` | ||
- `exists` | ||
- `existsSync` | ||
- `readFile(path, options?, next)` | ||
- `writeFile(path, data, options?, next)` - will also attempt to ensure the path exists | ||
- `appendFile(path, data, options?, next)` - will also attempt to ensure the path exists | ||
- `mkdir(path, mode?, next)` - mode defaults to `0o777 & (~process.umask())` | ||
- `stat(path, next)` | ||
- `readdir(path, next)` | ||
- `unlink(path, next)` | ||
- `rmdir(path, next)` | ||
- `exists(path, next)` | ||
- `existsSync(path)` | ||
@@ -72,0 +77,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
10420
195
97