Software /
code /
prosody-modules
Diff
mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 3491:4e9d4b07e3e9
mod_storage_xmlarchive: Remove per day files during migration
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 Mar 2019 17:56:54 +0100 |
parent | 3462:d73ed7975d82 |
child | 3571:f5ea0b886c7c |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Mar 18 21:26:06 2019 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sun Mar 17 17:56:54 2019 +0100 @@ -336,6 +336,8 @@ data.attr.stamp_legacy = dt.legacy(data.when); assert(dm.list_append(user, host, store, data)); end + assert(os.remove(dm.getpath(user .. "@" .. date, host, store, "list"))); + assert(os.remove(dm.getpath(user .. "@" .. date, host, store, "xml"))); end end else -- convert from internal