getName(); } $names = array_flip($names); $config = Core::getConfig(); foreach (glob(TextHelper::absolutePath($config->main->filesPath) . DS . '*') as $name) { $name = basename($name); if (!isset($names[$name])) { $func($name); } }