Obtendo listagem de arquivos no arquivo 7zip de volume dividido

Obtendo listagem de arquivos no arquivo 7zip de volume dividido

Estou usando o seguinte comando para criar um arquivo 7zip de várias partes (cada 1G) no Windows 10 (basicamente um backup completo da minha área de documentos):

7z a -r -v1g -bb -y \path\to\zips\xyzzy.7z .

Isso cria com sucesso cerca de 38 arquivos 1G para mim. No entanto, eu queria obter uma lista de todos os arquivos do arquivo posteriormente e não sei como fazer isso. O comando:

7z l xyzzy.7z.001

retorna um erro:

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1073741824 bytes (1024 MiB)

Listing archive: \somewhere\xyzzy.7z.001

--
Path = \somewhere\xyzzy.7z.001
Type = Split
Physical Size = 1073741824
Volumes = 1
Total Physical Size = 1073741824

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....   1073741824   1073741824  xyzzy.7z
------------------- ----- ------------ ------------  ------------------------
                            1073741824   1073741824  1 files
----------
Path = xyzzy.7z
Open ERROR: Can not open the file as [7z] archive

Errors: 1

Portanto, o arquivo subjacente 7zparece visível dentro do .7z.001arquivo, mas reclama que não é um arquivo válido.

Eu também tentei com o -tsplitqual removeu o erro, mas só então mostra o conteúdo xyzzy.7zsem me aprofundar naquele arquivo para ver seu conteúdo. Em outras palavras, a saída é idêntica à acima, mas a linha final é aquela que termina em 1 files.

Por que isso acontece? Eu entendi errado os parâmetros da linha de comando? Como obtenho uma listagem de arquivos do arquivo dividido?

Responder1

Tente usar a letra da unidade no caminho para o arquivo 7-zip. Por exemplo:

7z l C:\somewhere\xyzzy.7z.001

Parece ser um bug na versão 16.02. Fiz os seguintes testes:

E:\temp>7za l \temp\archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: \temp\archive.7z.001

--
Path = \temp\archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 1
Total Physical Size = 1048576

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....      1048576      1048576  archive.7z
------------------- ----- ------------ ------------  ------------------------
                               1048576      1048576  1 files
----------
Path = archive.7z
Open ERROR: Can not open the file as [7z] archive

Errors: 1

E:\temp>7za l E:\temp\archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: E:\temp\archive.7z.001

--
Path = E:\temp\archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 6
Total Physical Size = 5533143
----
Path = archive.7z
Size = 5533143
--
Path = archive.7z
Type = 7z
Physical Size = 5533143
Headers Size = 170
Method = LZMA2:6m
Solid = -
Blocks = 1

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44 ....A      6010800      5532973  gotingeno-davideosendacommon.pdf
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

Archives: 1
Volumes: 6
Total archives size: 5533143

E:\temp>7za l archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: archive.7z.001

--
Path = archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 6
Total Physical Size = 5533143
----
Path = archive.7z
Size = 5533143
--
Path = archive.7z
Type = 7z
Physical Size = 5533143
Headers Size = 170
Method = LZMA2:6m
Solid = -
Blocks = 1

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44 ....A      6010800      5532973  gotingeno-davideosendacommon.pdf
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

Archives: 1
Volumes: 6
Total archives size: 5533143

informação relacionada