Comparing version 1.4.3 to 1.5.0
@@ -115,2 +115,10 @@ // Generated by CoffeeScript 1.6.3 | ||
} | ||
if (this.systemFiles === false) { | ||
if (_path.basename(path)[0] === '.') { | ||
continue; | ||
} | ||
if (path.match(/~$/) !== null) { | ||
continue; | ||
} | ||
} | ||
stat = fs.statSync(path); | ||
@@ -149,5 +157,2 @@ if (type === 'all' || (type === 'files' && stat.isFile()) || (type === 'directories' && stat.isDirectory())) { | ||
mask = Finder.normalizePattern(mask); | ||
if (this.systemFiles === false) { | ||
this.exclude(['<~$>', '<^\\.>']); | ||
} | ||
return this.getPaths(this.directory, type, mask); | ||
@@ -154,0 +159,0 @@ }; |
{ | ||
"name": "fs-finder", | ||
"description": "File system recursive finder", | ||
"version": "1.4.3", | ||
"version": "1.5.0", | ||
"author": { | ||
@@ -27,3 +27,9 @@ "name": "David Kudera", | ||
"moment": "2.1.0" | ||
}, | ||
"devDependencies": { | ||
"should": "1.2.2" | ||
}, | ||
"scripts": { | ||
"test": "cd ./test; mocha ./index.js;" | ||
} | ||
} |
# fs-finder | ||
file system finder inspired by finder in [Nette framework](http://doc.nette.org/en/finder). | ||
## Changelog | ||
Changelog is in the bottom of this readme. | ||
## Installing | ||
@@ -132,2 +136,36 @@ | ||
var files = Finder.from('/var/data/base-path').findFiles(); // Load files recursively | ||
``` | ||
``` | ||
## Changelog | ||
* 1.5.0 | ||
+ Added changelog | ||
+ Created tests (npm test) | ||
+ Repaired bugs with hidding system and temp files | ||
* 1.4.3 | ||
+ Added MIT license | ||
* 1.4.2 | ||
+ Renamed repository from fs-finder to node-fs-finder | ||
* 1.4.1 | ||
+ Type in readme | ||
* 1.4.0 | ||
+ Every regexp must be enclosed in <> (before this, dots meens everything, not dot) | ||
+ Every character, which does mean something in regexp and is not in <>, is escaped | ||
* 1.3.0 (it seems that I skiped this version, sorry) | ||
* 1.2.0 | ||
+ Added in, from methods | ||
* 1.1.0 | ||
+ Added shortcuts "static" methods | ||
* 1.0.1 | ||
+ Some bug in combination with [simq](https://npmjs.org/package/simq) | ||
* 1.0.0 | ||
+ Initial commit |
Sorry, the diff of this file is not supported yet
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
25104
23
403
170
1
2