Skip to content

Improve recursive render robustness (hidden files, casing, error handling)#121

Open
036006 wants to merge 8 commits intomorevnaproject-org:masterfrom
036006:recursive_fix
Open

Improve recursive render robustness (hidden files, casing, error handling)#121
036006 wants to merge 8 commits intomorevnaproject-org:masterfrom
036006:recursive_fix

Conversation

@036006
Copy link
Contributor

@036006 036006 commented Jan 20, 2026

Harden recursive render traversal: validate directory input, skip symlinks/hidden/system entries and render subtrees, and make extension filtering case-insensitive.

Add resilience: handle os.listdir failures with warnings, log relpath cross-drive issues on Windows instead of crashing, and improve hidden detection for Windows attributes.

Keep the cache open during local recursive renders to avoid closed-DB errors.

if _is_hidden(file, f):
continue
# Skip symlinks
if os.path.islink(file):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't skip symlinks

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.

2 participants

Comments