Skip to content

Extract a recursively compressed single file (multiple archive formats).

Notifications You must be signed in to change notification settings

mohamedhaddi/recursive-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Recursive extractor

Forked from AbdullahALRashdan/Cybertalents-f100.

This script only works with single files that have been compressed multiple times, each time compressed as a single file.
The script will end once multiple files were detected.

Supported compressions: kbg, arj, ppmd, zip, rzip, gzip, bzip2, tar, cab, arc, xz, 7z, zoo, rar

  1. Make sure to install required data compression tools:
    sudo apt-get install ppmd kgb arj rzip bzip2 cabextract nomarch zoo
    Note: You may need to install ppmd and zoo packages manually.

  2. Download extract.py to your directory of choice, then create a child directory (e.g.: extracted/) and copy your archive file there with no other files.

.
├── extract.py
└── extracted/
    └── your_archive
  1. Set the value of path in extract.py to your new directory name (default is path = "extracted").

  2. Run ./extract.py.