code: @Override
      public boolean databaseExists(String directory) {
          if (new File(directory, kDBFilename).exists())
              return true;
          // If "db.forest" doesn't exist (auto-compaction will add numeric suffixes), check for meta:
          return new File(directory, kDBFilename + ".meta").exists();
      }
docs: /////////////////////////////////////////////////////////////////////////