diff options
-rw-r--r-- | acf/persistence/backends/json.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/acf/persistence/backends/json.lua b/acf/persistence/backends/json.lua index 2ac4b5a..b4e5fbf 100644 --- a/acf/persistence/backends/json.lua +++ b/acf/persistence/backends/json.lua @@ -39,6 +39,7 @@ function backend:split_path(path) table.remove(jpath, 1) local t = posix.stat(fpath, 'type') + if t == 'link' then t = posix.stat(posix.readlink(fpath), 'type') end if not t or not ({directory=true, regular=true})[t] then error('File or directory does not exist: '..fpath) end |