mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 10:17:05 +02:00
Fixed weird bug with direcotory names ending dir separator
This commit is contained in:
1 parent
d18274d7d1
commit
30655b2af0
1 file changed
+2
@@ -100,6 +100,8 @@ async def mkReplayQ(queue : asyncio.Queue, files : list, title : str):
|
||||
await queue.put(await mkQueueItem(line, title))
|
||||
else:
|
||||
for fn in files:
|
||||
if fn.endswith(os.sep):
|
||||
fn = fn[:-1]
|
||||
if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
|
||||
await queue.put(await mkQueueItem(fn, title))
|
||||
elif os.path.isdir(fn):
|
||||
|
||||
Reference in new issue
Block a user