Software /
code /
prosody
Comparison
util/datamanager.lua @ 10666:dfc8257d8445
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Feb 2020 23:33:53 +0100 |
parent | 10531:810abf34919a |
parent | 10665:69acda92d5a9 |
child | 11288:5fd1f1b544a0 |
comparison
equal
deleted
inserted
replaced
10664:c2b79b44ded7 | 10666:dfc8257d8445 |
---|---|
319 list = "list"; | 319 list = "list"; |
320 } | 320 } |
321 | 321 |
322 local function users(host, store, typ) -- luacheck: ignore 431/store | 322 local function users(host, store, typ) -- luacheck: ignore 431/store |
323 typ = type_map[typ or "keyval"]; | 323 typ = type_map[typ or "keyval"]; |
324 local store_dir = format("%s/%s/%s", data_path, encode(host), store); | 324 local store_dir = format("%s/%s/%s", data_path, encode(host), store_encode(store)); |
325 | 325 |
326 local mode, err = lfs.attributes(store_dir, "mode"); | 326 local mode, err = lfs.attributes(store_dir, "mode"); |
327 if not mode then | 327 if not mode then |
328 return function() log("debug", "%s", err or (store_dir .. " does not exist")) end | 328 return function() log("debug", "%s", err or (store_dir .. " does not exist")) end |
329 end | 329 end |