Skip to content

Fix exceptions in folders to tags - #1497

Merged
CyanVoxel merged 1 commit into
TagStudioDev:mainfrom
Huluk:main
Sep 3, 2026
Merged

Fix exceptions in folders to tags#1497
CyanVoxel merged 1 commit into
TagStudioDev:mainfrom
Huluk:main

Conversation

@Huluk

@Huluk Huluk commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

When running "Folders to Tags", the folder list is empty and no tags can be created. This change fixes that issue.

Tasks Completed

  • gracefully handle empty parent tag

  • avoid database lock by first creating a list of entries, then writing new tags

  • Platforms Tested:

    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:

    • Basic functionality
    • PyInstaller executable

Context

I can see that "Folders to Tags" is deprecated, but I don't see how I can do the same with other existing functionality, and this was the very first feature I tried after installing TagStudio, which kind of gave a bad impression. Sorry for maybe not knowing all your conventions, I'm new to the project and only skimmed the style guide for this small change.

@CyanVoxel CyanVoxel added Type: Fix A fix for a bug, typo, or other issue TagStudio: Tools/Macros Relating to macros or tool features for TagStudio Type: File System File system interactions labels Sep 3, 2026

@CyanVoxel CyanVoxel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you so much for this fix! While this specific feature has historically been under-maintined is slated to be replaced with the macros feature eventually, macros have continued to be pushed back so it's very nice to have this fix in the meantime.

@CyanVoxel CyanVoxel added this to the Alpha v9.6.4 milestone Sep 3, 2026
@CyanVoxel
CyanVoxel merged commit 3e9296c into TagStudioDev:main Sep 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TagStudio: Tools/Macros Relating to macros or tool features for TagStudio Type: File System File system interactions Type: Fix A fix for a bug, typo, or other issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants