Don't turn dir paths into dir\*, just pass it to winrar.

I can't remember why I did it this way, but it was putting the
directory's contents on the root of the archive, whereas the
user might want the directory itself to be on the root of the
archive, as is winrar's own behavior.
This commit is contained in:
voussoir 2022-01-19 21:00:17 -08:00
parent 07e1d0d406
commit a6c3992764
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -118,10 +118,7 @@ def RARCOMMAND(
if path.is_dir:
command.append('-r')
if path.is_dir:
input_pattern = path.absolute_path + '\\*'
else:
input_pattern = path.absolute_path
input_pattern = path.absolute_path
command.append(workdir.with_child(f'{basename}.rar').absolute_path)
command.append(f'{input_pattern}')