fs-extra
Advanced tools
Comparing version 0.26.6 to 0.26.7
@@ -1,3 +0,7 @@ | ||
0.26.6 / 2016-03-25 | ||
0.26.7 / 2016-03-16 | ||
------------------- | ||
- fixed `copy()` if source and dest are the same. [#230][#230] | ||
0.26.6 / 2016-03-15 | ||
------------------- | ||
- fixed if `emptyDir()` does not have a callback: [#229][#229] | ||
@@ -4,0 +8,0 @@ |
@@ -16,2 +16,8 @@ var fs = require('graceful-fs') | ||
// don't allow src and dest to be the same | ||
var basePath = process.cwd() | ||
var currentPath = path.resolve(basePath, src) | ||
var targetPath = path.resolve(basePath, dest) | ||
if (currentPath === targetPath) return callback(new Error('Source and destination must not be the same.')) | ||
fs.lstat(src, function (err, stats) { | ||
@@ -18,0 +24,0 @@ if (err) return callback(err) |
{ | ||
"name": "fs-extra", | ||
"version": "0.26.6", | ||
"version": "0.26.7", | ||
"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", |
88848
1118