Commit ce99cd4
committed
Fix #10057: Failed to scan documents on the root directory
get_matching_files() incorrectly drops the first character of each
path on scanning documents. It will help users to exclude paths
via exclude_patterns setting.
Note: Users need to configure `exclude_patterns` to put their document
on the root directory. This does not help to avoid recursive symlinks
(ex. /proc, /sys)1 parent 87eda92 commit ce99cd4
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments