protected override void Run(ShellCommand command, ShellContext context, LsOptions options) { if (!string.IsNullOrEmpty(options.PathToUse)) { var newPath = new ShellPath(options.PathToUse); if (!newPath.IsAbsolute) { newPath = ShellPath.Combine(in context.CurrentPath, in newPath); } Process(in newPath, context, options); } else { Process(in context.CurrentPath, context, options); } }
public List <IoItem> GetDesktopItems() { var list = new ProgramList(ShellPath.GetAllUsersDesktopFolderPath(), Environment.GetFolderPath(Environment.SpecialFolder.Desktop)); return(list.IoItems); }