最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Recursively Extracting Nested Archive Files - Stack Overflow

programmeradmin0浏览0评论

I have 500+ archive files that contain other archive files (.zip, .rar, .7z). For example:

archive.zip
|
|-file.abc
|
|-nested_archive.7z
        |
        file.def
        |
        nested_nested_archive.rar
                    |
                    file.ghi

How can I unarchive each nested archive to a folder in the same place (with the original nested archive file being deleted)? For example:

archive.zip
|
|-file.abc
|
|-nested_archive_dir/
        |
        file.def
        |
        nested_nested_archive_dir/
                    |
                    file.ghi

I've used py7zr, zipfile, and rarfile in Python, but a lot of these archive files aren't supported (BJC2 format). Is there a way to do this (ideally from the command line) in Windows?

发布评论

评论列表(0)

  1. 暂无评论