Skip to content

Conversation

CyanVoxel
Copy link
Member

Summary

This fixes #1089 by accounting for ignore pattern cases where there's a leading slash present and using wcmatch, which in gitignore should only match with files and folders in the root directory. Previously this was not accounted for in the wcmatch glob conversion, and would also separately raise a ValueError exception with a pattern with a leading slash was passed to it.

When testing, make sure the internal tools (wcmatch) flag is forced if you have ripgrep on your system. Otherwise this fix is designed to match ripgrep's pattern matching behavior.

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added this to the Alpha v9.5.5 milestone Sep 3, 2025
@CyanVoxel CyanVoxel added TagStudio: Library Relating to the TagStudio library system Priority: High An important issue requiring attention Status: Review Needed A review of this is needed labels Sep 3, 2025
@CyanVoxel CyanVoxel moved this to 🏓 Ready for Review in TagStudio Development Sep 3, 2025
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Sep 5, 2025
@CyanVoxel CyanVoxel merged commit eecb4d3 into main Sep 5, 2025
10 checks passed
@github-project-automation github-project-automation bot moved this from 🏓 Ready for Review to ✅ Done in TagStudio Development Sep 5, 2025
@CyanVoxel CyanVoxel deleted the fix-1089 branch September 5, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High An important issue requiring attention TagStudio: Library Relating to the TagStudio library system
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Refreshing directories hang on error
1 participant