I want my app to retain configuration settings after updates. To achieve this, I need to store the config file outside the app sandbox, as the sandbox is deleted and recreated with each update. I am using flutter to make this app. I tried to use Directory libraryDir = await getLibraryDirectory(); But this will return the library folder inside the sandbox. Also, the document folder. It will return the path such as /Users/caodingjie/Library/Containers/top.bugsmachine.iSearcher/Data/Library/iSearcher How to store files in /Users/caodingjie/Library/iSearcher ? Or, is there any other ways to achieve this? Continue reading...