mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-24 19:49:52 +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))
|
await queue.put(await mkQueueItem(line, title))
|
||||||
else:
|
else:
|
||||||
for fn in files:
|
for fn in files:
|
||||||
|
if fn.endswith(os.sep):
|
||||||
|
fn = fn[:-1]
|
||||||
if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
|
if os.path.isfile(fn) and (p_replayfile.match(fn) != None):
|
||||||
await queue.put(await mkQueueItem(fn, title))
|
await queue.put(await mkQueueItem(fn, title))
|
||||||
elif os.path.isdir(fn):
|
elif os.path.isdir(fn):
|
||||||
|
|||||||
Reference in new issue
Block a user