'How to extract a multi-volume RAR archive file with a Python script?
I want to do this on Linux with rar x filename.
The RAR archive file is split into parts, for example:
Filename-001.rar
Filename-002.rar
Filename-003.rar
I wanted to extract them all at once with a Python script.
Solution 1:[1]
I can think of three ways:
- make a shell (such as
bash) script to do this. There are many ways to do this that you can find with a Google search, so I'm not going to link them and limit you to one. - use Python to run shell commands: look into
os.systemand "subprocesses" - many Python solutions here: How can unrar a file with python
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | eccentricOrange |
