using System; using System.Collections.Generic; using System.IO; using System.Linq; using Wox.Infrastructure.Exception; using Wox.Infrastructure.Logger; namespace Wox.Plugin.Program.ProgramSources { [Serializable] public class FileSystemProgramSource : Win32 { public string Location { get; set; } = ""; public override List LoadPrograms() { if (Directory.Exists(Location) && MaxDepth >= -1) { var apps = new List(); GetAppFromDirectory(apps, Location, MaxDepth); return apps; } else { return new List(); } } } }