Mercurial > prosody-modules
comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 6545:3b605bfc94aa
mod_storage_xmlarchive: Fix purge method (thanks MattJ)
Was returning after reaching the inner loop without proceeding
to inspect other stores.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 24 May 2026 19:15:11 +0200 |
| parents | 5fb466693e85 |
| children | 8a4e6421fd24 |
comparison
equal
deleted
inserted
replaced
| 6544:981c14bb8975 | 6545:3b605bfc94aa |
|---|---|
| 465 if file:sub(-4) == ".xml" or file:sub(-5) == ".list" or file:sub(-5) == ".lidx" then | 465 if file:sub(-4) == ".xml" or file:sub(-5) == ".list" or file:sub(-5) == ".lidx" then |
| 466 os.remove(encoded_store .. "/" .. file); | 466 os.remove(encoded_store .. "/" .. file); |
| 467 end | 467 end |
| 468 end | 468 end |
| 469 end | 469 end |
| 470 return true; | 470 end |
| 471 end | 471 end |
| 472 end | 472 return true; |
| 473 end | 473 end |
| 474 | 474 |
| 475 module:provides("storage", provider); | 475 module:provides("storage", provider); |
| 476 | 476 |
| 477 | 477 |
