Skip to content

Conversation

@BrianPugh
Copy link
Collaborator

Replace #151 with an equivalent that works with all python versions.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces the use of Path.rglob() with the recurse_symlinks=True parameter (introduced in Python 3.13) with a custom _walk_all() function that works across all Python versions. The change ensures backward compatibility while maintaining the same functionality of recursively traversing directories and following symbolic links.

Changes:

  • Added a new _walk_all() helper function that uses os.walk() with followlinks=True
  • Replaced source.rglob("*", recurse_symlinks=True) with _walk_all(source)
  • Added os import to support the new implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BrianPugh BrianPugh merged commit e408eb8 into master Jan 11, 2026
21 checks passed
@BrianPugh BrianPugh deleted the recurse-symlinks-all-versions branch January 11, 2026 04:44
@skrat
Copy link
Contributor

skrat commented Jan 11, 2026

Thank you

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.

3 participants