Closed Loran425 closed 1 week ago
Similar to #118, I can't repro this on Mac
Modified Steps to reproduce. Does this still not error on mac? @gabrieljreed
Yeah, I'm still not getting the error. Looking through the stack trace, it looks like it calls Library.verify_ts_folders()
which will create the library path if it does not exist, which is where it's erroring out for you. For me, it successfully creates the new library and saves everything there.
I wonder if it's related to #120?
I am able to reproduce this on Linux (Mint). Even in cases with no spaces in filename, so unless that part is a Windows specific issue, I don't think its tied to #120.
Looking at os.mkdir()
there might be a simple fix, changing it to os.makedirs()
, that said it would only recreate the file structure it was expecting, so it also might not be what is actually desired.
That said, its worth noting that since swapping libraries performs a save first, if it fails, trying to swap libraries can't continue leaving you on the previous library. If that happens there is no error message for it in the core program, just in the logs. Might be worth its own issue?
Expected Behavior
If TagStudio cannot find the save directory for the library it should prompt the user to close the library or save in a new location
Current Behavior
Saving/Closing errors and the library remains open
Possible Solution
During save or close library, check that the save location is valid, if not, prompt the user to close the library or select a new location to save the library (should be the root of wherever the library folder moved)
Steps to Reproduce (Edit: no need to close/reopen TagStudio)
File > Save Library
orFile > Close Library