43
43
// Make the on-disk files for folders have sane names
44
44
folder_name = folder_name.Replace ('/', '-');
45
46
folder_name = folder_name.Replace (',', ' '); // Causes problems with the ConnectionString otherwise
47
48
string filename = Path.Combine (directory, String.Format ("SummaryTracker-{0}-{1}.db", account_name, folder_name));
48
49
bool create_new_db = ! File.Exists (filename);
50
52
connection = GetConnection (filename);
53
55
} catch (ApplicationException) {
57
80
// Purge the old database and create a new one
59
82
connection = GetConnection (filename);