From 5a9a9975a9a415ffe892ce7f667cefecc494b733 Mon Sep 17 00:00:00 2001
From: Coder12a <38924418+Coder12a@users.noreply.github.com>
Date: Tue, 15 Oct 2019 11:14:31 -0500
Subject: [PATCH] Remove: .cold file ext
---
README.md | 2 ++
colddb.lua | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index cb81483..2235c22 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,8 @@ ColdDB
ColdDB is a minetest mod that implements a serverless, asynchronous, NoSQL database engine.
It provides a key or key-value based storage system using plain Lua tables.
+.cold file ext was removed.
+
Usage
===========
diff --git a/colddb.lua b/colddb.lua
index da3f830..4530d24 100644
--- a/colddb.lua
+++ b/colddb.lua
@@ -81,7 +81,7 @@ function colddb.Colddb(dir)
end
local function file_exists(name)
- local f = io.open(string.format("%s/%s.cold", directory, name), "r")
+ local f = io.open(string.format("%s/%s", directory, name), "r")
if f ~= nil then
io.close(f)
return true