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:
parent
07e1d0d406
commit
a6c3992764
1 changed files with 1 additions and 4 deletions
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue