Subdirectories should be queued up now too with !!lopl

This commit is contained in:
Kwoth 2016-10-19 08:53:09 +02:00
parent b18b805f4d
commit f08f08a79c

View File

@ -317,7 +317,8 @@ namespace NadekoBot.Modules.Music
return;
try
{
var fileEnum = new DirectoryInfo(arg).GetFiles()
var dir = new DirectoryInfo(arg);
var fileEnum = dir.GetFiles("*", SearchOption.AllDirectories)
.Where(x => !x.Attributes.HasFlag(FileAttributes.Hidden | FileAttributes.System));
foreach (var file in fileEnum)
{