From b5cf596d6c17fc9c8b7c679fe445a9c70af2a16e Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Wed, 1 May 2013 11:44:11 +0300 Subject: allow numerical components in path names use escape syntax to encode number-looking strings --- acf/persistence/backends/json.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'acf/persistence/backends/json.lua') diff --git a/acf/persistence/backends/json.lua b/acf/persistence/backends/json.lua index 57352d8..65fc987 100644 --- a/acf/persistence/backends/json.lua +++ b/acf/persistence/backends/json.lua @@ -28,7 +28,7 @@ function backend:split_path(path) local res while #fpath > 0 do - local fp = pth.mjoin('/', unpack(fpath)) + local fp = pth.join('/', unpack(fpath)) if self.cache[fp] then return fp, jpath end table.insert(jpath, 1, fpath[#fpath]) table.remove(fpath) @@ -37,7 +37,7 @@ function backend:split_path(path) fpath = '/' while true do - fpath = pth.mjoin(fpath, jpath[1]) + fpath = pth.join(fpath, jpath[1]) table.remove(jpath, 1) local t = posix.stat(fpath, 'type') -- cgit v1.2.3