Comparing version 0.26.2 to 0.26.3
@@ -0,1 +1,5 @@ | ||
0.26.3 / 2015-12-17 | ||
------------------- | ||
- fixed `copy()` hangup in copying blockDevice / characterDevice / `/dev/null`. See: https://github.com/jprichardson/node-fs-extra/issues/193 | ||
0.26.2 / 2015-11-02 | ||
@@ -2,0 +6,0 @@ ------------------- |
@@ -72,3 +72,3 @@ // imported from ncp (this is temporary, will rewrite) | ||
return onDir(item) | ||
} else if (stats.isFile()) { | ||
} else if (stats.isFile() || stats.isCharacterDevice() || stats.isBlockDevice()) { | ||
return onFile(item) | ||
@@ -75,0 +75,0 @@ } else if (stats.isSymbolicLink()) { |
{ | ||
"name": "fs-extra", | ||
"version": "0.26.2", | ||
"version": "0.26.3", | ||
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/jprichardson/node-fs-extra", |
@@ -64,3 +64,3 @@ Node.js: fs-extra | ||
- [copy](#copy) | ||
- [copySync](#copy) | ||
- [copySync](#copySync) | ||
- [createOutputStream](#createoutputstreamfile-options) | ||
@@ -108,7 +108,4 @@ - [emptyDir](#emptydirdir-callback) | ||
Sync: `copySync()` | ||
Example: | ||
Examples: | ||
```js | ||
@@ -128,3 +125,23 @@ var fs = require('fs-extra') | ||
### copySync() | ||
**copySync(src, dest, [options])** | ||
Synchronously copies a file or directory. The directory can have contents. | ||
Example: | ||
```js | ||
var fs = require('fs-extra') | ||
try { | ||
fs.copySync('/tmp/mydir', '/tmp/mynewdir' | ||
} catch (err) { | ||
console.error('Oh no, there was an error: ' + err.message) | ||
} | ||
``` | ||
### createOutputStream(file, [options]) | ||
@@ -296,5 +313,5 @@ | ||
### outputFile(file, data, callback) | ||
### outputFile(file, data, [options], callback) | ||
Almost the same as `writeFile` (i.e. it [overwrites](http://pages.citebite.com/v2o5n8l2f5reb)), except that if the parent directory does not exist, it's created. | ||
Almost the same as `writeFile` (i.e. it [overwrites](http://pages.citebite.com/v2o5n8l2f5reb)), except that if the parent directory does not exist, it's created. `options` are what you'd pass to [`fs.writeFile()`](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback). | ||
@@ -301,0 +318,0 @@ Sync: `outputFileSync()` |
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
62969
578