Remove global tag
This commit is contained in:
16
colddb.lua
16
colddb.lua
@ -185,22 +185,6 @@ function colddb.Colddb(directory)
|
||||
end)
|
||||
end
|
||||
|
||||
self.add_global_tag = function(tag)
|
||||
local t = ""
|
||||
if type(tag) == "table" then
|
||||
for index in pairs(tag) do
|
||||
t = string.format("%s%s/", t, index)
|
||||
end
|
||||
else
|
||||
t = string.format("%s/", tag)
|
||||
end
|
||||
self.db.global_tag = string.format("%s%s", self.db.global_tag, t)
|
||||
self.db.directory = string.format("%s/%s", self.db.directory, t)
|
||||
if not createDir(self.db.directory) then
|
||||
error(string.format("%s is not a directory.", self.db.directory))
|
||||
end
|
||||
end
|
||||
|
||||
self.add_tag = function(name, tag)
|
||||
local t = ""
|
||||
if not self.db.tags[name] then
|
||||
|
Reference in New Issue
Block a user