0

I have a directory with over 100 sub directories which I want all converted into rar, but can't find any way to do so. I'm aware of patool lib and the method patoolib.create_archive() but since there's almost no documentation about it I don't know how to use it properly or if it could even be used for this in the first place. Thank you.

  • Have you looked at this question? https://stackoverflow.com/questions/31261879/how-to-create-a-rar-file-using-python ? – Roy2012 May 24 '20 at 18:45
  • I also found this question where it shows how to do it with shutil, compressing in zip though, and it worked for me. thanks. https://stackoverflow.com/questions/1855095/how-to-create-a-zip-archive-of-a-directory-in-python?rq=1 – Miguel Arrieche May 24 '20 at 20:23

0 Answers0