Software /
code /
prosody
Diff
core/storagemanager.lua @ 5037:c34fdcae6d29
storagemanager: Add method for listing stores
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 28 Jul 2012 21:30:54 +0200 |
parent | 5036:be33164aa97e |
child | 5041:be204204cc5f |
line wrap: on
line diff
--- a/core/storagemanager.lua Sat Jul 28 21:30:24 2012 +0200 +++ b/core/storagemanager.lua Sat Jul 28 21:30:54 2012 +0200 @@ -100,5 +100,8 @@ function datamanager.store(username, host, datastore, data) return open(host, datastore):set(username, data); end +function datamanager.list_stores(username, host) + return get_driver(host):list_stores(username, host); +end return _M;