Fix RarExists glob check not looking in workdir, moveto.
This commit is contained in:
parent
ebcc62d765
commit
ae4a9ae390
1 changed files with 6 additions and 1 deletions
|
@ -292,7 +292,12 @@ def rarpar(
|
|||
else:
|
||||
basename = basename.format(timestamp=timestamp)
|
||||
|
||||
existing = winglob.glob(f'{basename}*.rar')
|
||||
existing = None
|
||||
if workdir:
|
||||
existing = existing or workdir.glob(f'{basename}*.rar')
|
||||
if moveto:
|
||||
existing = existing or moveto.glob(f'{basename}*.rar')
|
||||
|
||||
if existing:
|
||||
raise RarExists(f'{existing[0]} already exists.')
|
||||
|
||||
|
|
Loading…
Reference in a new issue