You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Library reopen doesn't check to see if path is valid #118
When opening the program if the saved library is no longer valid the program will show an information or error prompt informing the user of the error.
Current Behavior
If the library path is no longer valid, TagStudio will attempt to open the old library with an error in the terminal but will not tell the user of the error via the interface.
Possible Solution
Verify the library path is None or an existing directory when starting up if not either of these, show a popup informing the user.
Steps to Reproduce
Open a library
Close Tagstudio
Delete or rename the library folder in the file manager
Reopen Tagstudio
[ERROR] No existing TagStudio library found at 'C:\Users\Loran425\Pictures\Item Icons\tradingicons\Testing'. Creating one.
Traceback (most recent call last):
File "C:\Users\Loran425\PycharmProjects\TagStudio\tagstudio\src\core\library.py", line 555, in create_library
self.verify_ts_folders()
File "C:\Users\Loran425\PycharmProjects\TagStudio\tagstudio\src\core\library.py", line 575, in verify_ts_folders
os.mkdir(full_ts_path)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Loran425\\Pictures\\Item Icons\\tradingicons\\Testing\\.TagStudio'
Activity
gabrieljreed commentedon May 2, 2024
I'm not able to repro this bug. Maybe it's Windows exclusive? (On Mac currently)
Fix library reopen doesn't check if path is valid TagStudioDev#118
abby-freakazoid commentedon May 2, 2024
I'm able to reproduce this bug on Linux.
The program doesn't outright crash, but the console output says:
Merge pull request #122 from abby-freakazoid/bugfix/validate-library-…
Loran425 commentedon May 2, 2024
Fixed by #122
Fix library reopen doesn't check if path is valid TagStudioDev#118
Merge pull request TagStudioDev#122 from abby-freakazoid/bugfix/valid…