diff options
Diffstat (limited to 'acf/persistence/backends/files.lua')
-rw-r--r-- | acf/persistence/backends/files.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/acf/persistence/backends/files.lua b/acf/persistence/backends/files.lua index 03eadff..e123e21 100644 --- a/acf/persistence/backends/files.lua +++ b/acf/persistence/backends/files.lua @@ -17,7 +17,7 @@ backend = require('acf.object').class() function backend:init() self.cache = {} end function backend:get(path, tpe) - local name = pth.mjoin('/', unpack(path)) + local name = pth.join('/', unpack(path)) if not self.cache[name] then local t = posix.stat(name, 'type') @@ -30,7 +30,7 @@ function backend:get(path, tpe) local res = {} for _, fname in ipairs(posix.dir(name)) do if not ({['.']=true, ['..']=true})[fname] then - table.insert(res, fname) + table.insert(res, pth.name(fname)) end end return res @@ -46,7 +46,7 @@ end function backend:set(mods) for _, mod in pairs(mods) do local path, t, value = unpack(mod) - local name = pth.mjoin('/', unpack(path)) + local name = pth.join('/', unpack(path)) -- TODO save references (t == 'reference') as symlinks |