Subdirectories should be queued up now too with !!lopl
This commit is contained in:
parent
b18b805f4d
commit
f08f08a79c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user