Skip to content

Normalize path separators in ContentManager#6

Merged
MudDev merged 1 commit intoUDPServerAdapterfrom
fix/user-data-download
Apr 15, 2026
Merged

Normalize path separators in ContentManager#6
MudDev merged 1 commit intoUDPServerAdapterfrom
fix/user-data-download

Conversation

@MudDev
Copy link
Copy Markdown

@MudDev MudDev commented Apr 15, 2026

This pull request introduces several improvements and bug fixes related to file path normalization, robust handling of missing or malformed data, and enhanced reliability when managing database file entries and user content directories. The changes ensure better cross-platform compatibility, prevent errors from unexpected input, and make the system more resilient to transient filesystem issues.

Path normalization and consistency:

  • All file paths are now normalized to use forward slashes (/) instead of backslashes (`This pull request introduces several improvements and bug fixes related to file path normalization, robust handling of missing or malformed data, and enhanced reliability when managing database file entries and user content directories. The changes ensure better cross-platform compatibility, prevent errors from unexpected input, and make the system more resilient to transient filesystem issues.

Path normalization and consistency:

) in ContentManager.py, ensuring consistent handling across different operating systems.

Robust handling of missing or malformed data:

  • Improved getJsonRow in DbCursor.py to handle cases where the directory string does not match the expected pattern, preventing errors when parsing site addresses and directories.

Database file management and resilience:

  • Modified getDbFiles in SiteStorage.py to only drop stale content.db entries if the site directory is actually readable, preventing accidental removal of entries due to temporary filesystem issues.

User content directory detection:

  • Enhanced downloadContent in Site.py to detect when user content directories need to be scanned for the first time, ensuring that peer queries are triggered as needed to discover user subdirectories.

@MudDev MudDev merged commit 8294e54 into UDPServerAdapter Apr 15, 2026
3 checks passed
@MudDev MudDev deleted the fix/user-data-download branch April 16, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant