Comparing version 0.0.4 to 0.0.5
13
index.js
@@ -9,2 +9,3 @@ var fs = require('fs'); | ||
var em = new EventEmitter; | ||
var inodes = {}; | ||
@@ -28,3 +29,11 @@ function finder (dir, f) { | ||
if (stat.isDirectory()) { | ||
if (stat.isSymbolicLink()) { | ||
em.emit('link', file, stat); | ||
} | ||
if (inodes[stat.ino]) { | ||
// already seen this inode, probably a recursive symlink | ||
this(null); | ||
} | ||
else if (stat.isDirectory()) { | ||
em.emit('directory', file, stat); | ||
@@ -37,2 +46,4 @@ finder(file, this); | ||
} | ||
inodes[stat.ino] = true; | ||
}) | ||
@@ -39,0 +50,0 @@ .seq(f.bind({}, null)) |
{ | ||
"name" : "findit", | ||
"version" : "0.0.4", | ||
"version" : "0.0.5", | ||
"description" : "Walk a directory tree.", | ||
@@ -9,2 +9,6 @@ "main" : "./index.js", | ||
}, | ||
"devDependencies" : { | ||
"hashish" : ">=0.0.2 <0.1", | ||
"expresso" : "0.7.x" | ||
}, | ||
"repository" : { | ||
@@ -11,0 +15,0 @@ "type" : "git", |
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
8718
13
210
2