jonataslaw / get_storage

A fast, extra light and synchronous key-value storage to Get framework
MIT License
369 stars 83 forks source link

Storage data persists even after delete AppData on Windows #136

Open KentaIbayashi opened 1 year ago

KentaIbayashi commented 1 year ago

Where does GetStorage save data? The app is Windows app on Microsoft Store and, and can't delete the app data even after reinstall the app. I tried to delete the data saved by GetStorage manually but couldn't find the directory location.

KentaIbayashi commented 1 year ago

I found the solution. It is in C:\Users{user}\Documents returned by getApplicationDocumentsDirectory. After deleting the files named with extension .bak and .gs, the storage data is also deleted.

But another issue here, it is better to save in one of these directory below, isn't it? Like shared preference behaves. C:\Users{user}\AppData\Roaming{YourAppOrganization}{YourAppName} C:\Users{user}\AppData\Local{YourAppOrganization}{YourAppName}

jonataslaw commented 1 year ago

I am thinking about change the desktop location. When I built this package another options were not available. But for this, I will have to create a migration data flow, to prevent the current users to lost their data.

jonodav commented 10 months ago

+1 for changing location. It's not very nice having the files dumped in the users documents folder.

mhdjazmati commented 8 months ago

when i change the location and i passed it in path like this for example: GetStorage( 'GetStorage', getApplicationSupportDirectory() ), );

i got permission denied in windows, it only work if i run the app as administrator but other libs like Hive or Secure Storage it has no issue saving in same 'getApplicationSupportDirectory' without run as administrator