Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 75406e8

Browse files
authored
Merge pull request #12445 from dakaraphi/filefilter
Make file stats available to indexFilter
2 parents 00187c9 + 5e8528d commit 75406e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/filesystem/Directory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ define(function (require, exports, module) {
166166
names.forEach(function (name, index) {
167167
var entryPath = this.fullPath + name;
168168

169-
if (this._fileSystem._indexFilter(entryPath, name)) {
170-
var entryStats = stats[index],
171-
entry;
169+
var entryStats = stats[index];
170+
if (this._fileSystem._indexFilter(entryPath, name, entryStats)) {
171+
var entry;
172172

173173
// Note: not all entries necessarily have associated stats.
174174
if (typeof entryStats === "string") {

0 commit comments

Comments
 (0)