aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/SimpleDatabasePlugin.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/plugins/SimpleDatabasePlugin.hxx')
-rw-r--r--src/db/plugins/SimpleDatabasePlugin.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/plugins/SimpleDatabasePlugin.hxx b/src/db/plugins/SimpleDatabasePlugin.hxx
index 137a60884..8c7978a91 100644
--- a/src/db/plugins/SimpleDatabasePlugin.hxx
+++ b/src/db/plugins/SimpleDatabasePlugin.hxx
@@ -59,6 +59,10 @@ public:
bool Save(Error &error);
+ bool FileExists() const {
+ return mtime > 0;
+ }
+
static Database *Create(EventLoop &loop, DatabaseListener &listener,
const config_param &param,
Error &error);