void ProcessJSONFile(string regex = null)
{
FileInfo fi = new FileInfo(Action.path);
if (fi.Exists)
{
string json = JSON.OpenJSONFiel(Action.path);
if (json != string.Empty)
{
bool isaddressfound = JSON.isAddressFound(json, Action.address);
if (isaddressfound)
{
Worker.I.EnqueTTD(new Model_ThingsToDelete()
{
FullPathName = Action.path,
path = fi.Directory.FullName,
IsWhitelisted = false,
OverWrite = false,
WhatKind = THINGS_TO_DELETE.file,
command = COMMANDS.json,
search = SEARCH.file,
address = Action.address,
level = Action.parent_option.level,
cleaner_name = Action.parent_option.label
});
}
}
}
}