How to find the latest the ThreadData folder on all platforms?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created the add-in ThreadKeeper, which copies threads into Fusion's ThreadData folder every time Fusion is updated.
I have previously based the look-up on app.userInterface.workspaces.itemById('FusionSolidEnvironment').resourceFolder to find webdeploy/production/<hash>/...../ThreadData, but I have now hit a use-case where this method fails. The problem happens on a Mac.
The resourceFolder is
/Applications/Autodesk Fusion.app/Contents/Libraries/Applications/Fusion/Fusion/UI/FusionUI/Resources/Environment/Model ,
while the user's ThreadData folder is
/Users/<user>/Library/Application Support/Autodesk/webdeploy/production/<letters and numbers>/Autodesk Fusion.app/Contents/Libraries/Applications/Fusion/Fusion/Server/Fusion/Configuration/
What is the best way to look up the ThreadData folder?
I asked the user for the paths in Application.applicationFolders and the text command "paths.get", but none contains when webdeploy path.