J
J
Jekson2020-05-20 17:19:08
Python
Jekson, 2020-05-20 17:19:08

how to create rar archive in python

Actually how? I know there is such a lib for working with rar archives https://rarfile.readthedocs.io/en/latest/index.html but it does not support creating a rar archive. Maybe someone came across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-20
@Lepilov

You can do this without libraries:

os.system('rar a <файл.rar> <файл_который_нужно_добавить_в_архив>')

There is also a fork of lib-rar-python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question