openOrCreate

fun openOrCreate(dir: Path, creation: CreationOptions = CreationOptions(), options: StoreOptions = StoreOptions()): JsonStore(source)

Opens the store in dir, or creates one with creation if it holds none. Throws CreationOptionsMismatchException when the store there was created with other CreationOptions, and then leaves it as it was; open takes whatever it was created with.