To call getApplicationDocumentsDirectory() will return a path to %USERPROFICE%\Documents on Windows.
The path is dedicated to a user and is not specific for the app, and writring to this directory directly may confict with stuffs generated by other apps.
This PR will add a subdirectory named after EHConst.appTitle under the returned path for the data specific for this app to avoid the conficts and separate the data generated by this app from other apps to make migration and monitoring easier.
To call
getApplicationDocumentsDirectory()
will return a path to%USERPROFICE%\Documents
onWindows
. The path is dedicated to a user and is not specific for the app, and writring to this directory directly may confict with stuffs generated by other apps. This PR will add a subdirectory named afterEHConst.appTitle
under the returned path for the data specific for this app to avoid the conficts and separate the data generated by this app from other apps to make migration and monitoring easier.Before the fix:
After the fix: