Fixed weird bug with direcotory names ending dir separator

This commit is contained in:
Jylpah committed 2018-11-04 16:46:27 +02:00
1 parent d18274d7d1
commit 30655b2af0
1 file changed
+2
+2
View File
@@ -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):