file-restore: never list ppxar as archive

Payload data archives cannot be used to navigate the content, so
exclude them from the archive listing, as this is used by
Proxmox VE to list in the file browser.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-06-07 13:37:49 +02:00 committed by Fabian Grünbichler
parent 364e2d1133
commit 6cf75f2fe2

View File

@ -124,7 +124,8 @@ async fn list_files(
ExtractPath::ListArchives => {
let mut entries = vec![];
for file in manifest.files() {
if !has_pxar_filename_extension(&file.filename, true)
if !file.filename.ends_with(".pxar.didx")
&& !file.filename.ends_with(".mpxar.didx")
&& !file.filename.ends_with(".img.fidx")
{
continue;