Commit 68dda2b
committed
Fix mergefiles.py to recursively process subdirectories
- Replace os.listdir() with glob.glob() to enable recursive directory traversal
- Use glob patterns with '**' and recursive=True to find YAML files in nested subdirectories
- Update file processing logic to handle full file paths instead of just filenames
- Use os.path.basename() to extract filename for warning messages
This fix allows the merge script to properly discover and process YAML files
located in subdirectories rather than being limited to the immediate directory,
making it more flexible for complex directory structures.
Fixes the script's ability to merge YAML configuration files from nested
module directories in the website's data structure.
Signed-off-by: Harvey Lynden <hlynden@redhat.com>1 parent ac58165 commit 68dda2b
1 file changed
Lines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
0 commit comments