3003h / Eros-FE

An e-hentai/exhentai app make on flutter
Apache License 2.0
2.76k stars 116 forks source link

Make the some paths to `ApplicationDocumentsDirectory/FEhViewer` #187

Closed hxdhttk closed 1 year ago

hxdhttk commented 1 year ago

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.

Before the fix:

before

After the fix:

after1 after2