How can I create a .rar
archive using python in windows? I used to use os.system
+ rar a <DST> <FILE> [<FILE>...]
in linux but I have searched a lot and could not find a simple way to achieve this in windows.
I have found some solutions using winrar
command-line interface but I cannot figure out how it actually works.
My goal is to have something like this:
def archive_cwd(name):
os.system(f'rar a {name}.rar ./*')
Thank you for your help