Not sure if I'm doing something wrong, on the application launch I'm
copying SQLite database from applicationDirectory to
applicationStorageDirectory, in order to be able to read and write. 

Of course, I check if the database already exists there or not. 

var dbFile:File = File.applicationDirectory.resolvePath("database.db");
                                
var DBDestination:File =
File.applicationStorageDirectory.resolvePath("db/database.db");

                        
if (!DBDestination.exists)
{
 dbFile.copyTo(DBDestination);                  
}


Everything is fine here, up to the point when application is
uninstalled. Database stays there even after the uninstall and hence
breaks some critical functionality. 

It might be that I'm not following some best practices, or there is a
way to manually clean up the stuff, I don't know. Any ideas?


Alen


Reply via email to