diff options
Diffstat (limited to 'aconf/persistence/backends/json.lua')
-rw-r--r-- | aconf/persistence/backends/json.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aconf/persistence/backends/json.lua b/aconf/persistence/backends/json.lua index bdf2715..5a13955 100644 --- a/aconf/persistence/backends/json.lua +++ b/aconf/persistence/backends/json.lua @@ -1,9 +1,9 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] -local pth = require('aconf.path') +local address = require('aconf.path.address') local Cache = require('aconf.persistence.backends.volatile') local util = require('aconf.persistence.util') local copy = require('aconf.util').copy @@ -26,7 +26,7 @@ function backend:split_path(path) local res while #fpath > 0 do - local fp = pth.join('/', table.unpack(fpath)) + local fp = address.join('/', table.unpack(fpath)) if self.cache[fp] then return fp, jpath end table.insert(jpath, 1, fpath[#fpath]) table.remove(fpath) @@ -35,7 +35,7 @@ function backend:split_path(path) fpath = '/' while true do - fpath = pth.join(fpath, jpath[1]) + fpath = address.join(fpath, jpath[1]) table.remove(jpath, 1) local t = posix.stat(fpath, 'type') |