We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf6f5e commit f4b8459Copy full SHA for f4b8459
lib/util.js
@@ -14,7 +14,7 @@ exports.FileFinder = class FileFinder {
14
* @return {boolean}
15
*/
16
this._filter = filename => {
17
- if(skipDotfiles && isDotfile(filename)) {
+ if(skipDotfiles && path.basename(filename).startsWith(".")) {
18
return false;
19
}
20
return filter ? filter(filename) : true;
@@ -64,14 +64,4 @@ async function tree(filepath, referenceDir = filepath) {
64
return entries.flat();
65
66
67
-/**
68
- * Does the filename start with a dot?
69
- *
70
- * @param {string} filename
71
- * @returns {boolean}
72
- */
73
-function isDotfile(filename) {
74
- return path.basename(filename).startsWith(".");
75
-}
76
-
77
/** @import { FileFinderOptions } from "./types.ts" */
0 commit comments