]> git.proxmox.com Git - proxmox-backup.git/commitdiff
file-restore: never list ppxar as archive
authorChristian Ebner <c.ebner@proxmox.com>
Fri, 7 Jun 2024 11:37:49 +0000 (13:37 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 7 Jun 2024 11:56:24 +0000 (13:56 +0200)
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>
proxmox-file-restore/src/main.rs

index 38cc1ce85b4b46acda3a5bd67876d74bdf515e74..0f16f3d42fbd88e5f905da9d1c70ceeddfb64a0b 100644 (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;