summaryrefslogtreecommitdiffstats
path: root/aconf/persistence/backends/files.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-03-11 13:59:25 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-03-11 16:54:31 +0200
commit83889bc5e4659e845d919e9a477a29167e7cb4f8 (patch)
tree8e9c748d75c4f5a090f92329dad28f3df3654447 /aconf/persistence/backends/files.lua
parent9843bb8363978b1556d3ccc79bd4c08027af7bfe (diff)
downloadaconf-83889bc5e4659e845d919e9a477a29167e7cb4f8.tar.bz2
aconf-83889bc5e4659e845d919e9a477a29167e7cb4f8.tar.xz
remove address module
Diffstat (limited to 'aconf/persistence/backends/files.lua')
-rw-r--r--aconf/persistence/backends/files.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/aconf/persistence/backends/files.lua b/aconf/persistence/backends/files.lua
index c619754..bfb3d49 100644
--- a/aconf/persistence/backends/files.lua
+++ b/aconf/persistence/backends/files.lua
@@ -5,7 +5,6 @@ See LICENSE file for license details
local topology = require('aconf.model.root').topology
local pth = require('aconf.path')
-local address = require('aconf.path.address')
local util = require('aconf.persistence.util')
local posix = require('posix')
@@ -29,7 +28,7 @@ local backend = require('aconf.object').class()
function backend:init() self.cache = {} end
function backend:get(path, top)
- local name = address.join('/', table.unpack(path))
+ local name = pth.join('/', table.unpack(path))
if not self.cache[name] then
local t = posix.stat(name, 'type')
@@ -69,7 +68,7 @@ end
function backend:set(mods)
for _, mod in pairs(mods) do
local path, value = table.unpack(mod)
- local name = address.join('/', table.unpack(path))
+ local name = pth.join('/', table.unpack(path))
if value == nil then
print('DEL', name)