Allow music_folder to not have trailing /

This commit is contained in:
Kyle Robbertze
2021-02-01 22:46:07 +02:00
committed by Terry Geng
parent 49779c20ae
commit 6bc9a9a8e0
2 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,6 @@ def get_recursive_file_list_sorted(path):
relroot = root.replace(path, '', 1)
if relroot != '' and relroot in var.config.get('bot', 'ignored_folders'):
continue
if len(relroot):
relroot += '/'
for file in files:
if file in var.config.get('bot', 'ignored_files'):
continue