diff mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 3585:ddf109d58eff

mod_storage_xmlarchive: Add support for user iteration API Helps migration tools discover available users
author Kim Alvefur <zash@zash.se>
date Sun, 05 May 2019 16:09:30 +0200
parents 7700c9537e90
children c24d43ababc6
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun May 05 16:04:20 2019 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun May 05 16:09:30 2019 +0200
@@ -286,6 +286,10 @@
 	return dates;
 end
 
+function archive:users()
+	return dm.users(module.host, self.store, "list");
+end
+
 local provider = {};
 function provider:open(store, typ)
 	if typ ~= "archive" then return nil, "unsupported-store"; end