public void EnqueueFiles(string regex = "")
{
IEnumerable<string> path_and_file = Glob.GetMatches(Action.path.Replace('\\', '/'), Glob.Constants.IgnoreCase);
foreach (string file in path_and_file)
{
Worker.I.EnqueTTD(new Model_ThingsToDelete()
{
FullPathName = file.Replace('/', '\\'),
IsWhitelisted = false,
OverWrite = false,
WhatKind = THINGS_TO_DELETE.file,
command = COMMANDS.sqlite_vacuum,
search = SEARCH.file,
level = Action.parent_option.level,
cleaner_name = Action.parent_option.label
});
}
}