public static string Pick(this IRandomFilePicker picker, string path, bool recursive = true) => picker.Pick(path, "*", true);
public static string Pick(this IRandomFilePicker picker, string path, string searchPattern, bool recursive = true) => picker.Pick(path, searchPattern, recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly);
public MemesCommands(IRandomFilePicker randomFilePicker, IOptionsSnapshot <MemesOptions> memesOptions, ILogger <CoinCheckCommands> log) { this._randomFile = randomFilePicker; this._memesOptions = memesOptions.Value; this._log = log; }