update fstream to v0.1.18

This commit is contained in:
Nathan Rajlich 2012-06-06 14:31:56 -07:00
parent a07f082717
commit aa8bc9d7cf
9 changed files with 275 additions and 124 deletions

View file

@ -100,7 +100,9 @@ DirWriter.prototype._process = function () {
// don't allow recursive copying
var p = entry
do {
if (p._path === me.root._path || p._path === me._path) {
var pp = p._path || p.path
if (pp === me.root._path || pp === me._path ||
(pp && pp.indexOf(me._path) === 0)) {
// console.error("DW Exit (recursive)", entry.basename, me._path)
me._processing = false
if (entry._collected) entry.pipe()