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 afc0f8a commit 7adfecaCopy full SHA for 7adfeca
src/lib/paths.ts
@@ -7,7 +7,9 @@ import * as path from "path";
7
import { ROOT } from "../lib/constants";
8
import { MoveOrRename, SplitPathResult } from "./paths.d";
9
10
-const REPEAT_PATH_STARTS = ["readme", "index"];
+// The starts of filenames which could be repeated in a repo. All lowercase here.
11
+const REPEAT_FILENAMES = ["readme", "index", '__init__.py'];
12
+
13
/**
14
* Get metadata for a given path.
15
*
@@ -44,7 +46,7 @@ export function friendlyFile(filePath: string) {
44
46
45
47
const nameLower = name.toLowerCase();
48
- for (const p of REPEAT_PATH_STARTS) {
49
+ for (const p of REPEAT_FILENAMES) {
50
if (nameLower.startsWith(p)) {
51
return filePath;
52
}
0 commit comments