refactor(migrate_wcms_resume): use recursive glob to find user JSON files and skip macOS hidden files

This commit is contained in:
kempersc 2026-01-11 23:32:27 +01:00
parent f497be98d1
commit 070c87af7b
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -236,8 +236,10 @@ def main():
print("\nPhase 2: Collecting WCMS files...")
wcms_files = []
for f in WCMS_USERS_DIR.glob('user_*.json'):
wcms_files.append(('users', f))
# Use recursive glob to find files in subdirectories AND at top level
for f in WCMS_USERS_DIR.glob('**/user_*.json'):
if not f.name.startswith('._'): # Skip macOS hidden files
wcms_files.append(('users', f))
if WCMS_USERS_NEW_DIR.exists():
for f in WCMS_USERS_NEW_DIR.glob('*.json'):