Upstream mrmlnc/fast-glob state of the touched files before e48054e0d4

This commit is contained in:
upstream committed 2026-09-04 03:09:33 +02:00
1 parent e246fef883
commit 75a80a0c79
2 files changed
+2 -31

No files matched your search

+2 -7
View File
@@ -33,15 +33,10 @@ export abstract class Reader<T> {
}
protected _makeEntry(stats: FsStats, pattern: Pattern): Entry {
// A static pattern is the path to the entry, so it is used as the entry path as is.
// The name, however, is the basename of that path, the same as for the entries that
// the dynamic reader produces, so that both readers return the same shape.
const name = path.basename(pattern);
const entry: Entry = {
name,
name: pattern,
path: pattern,
dirent: utils.fs.createDirentFromStats(name, stats),
dirent: utils.fs.createDirentFromStats(pattern, stats),
};
if (this.#settings.stats) {