update slack msg

This commit is contained in:
Marko
2024-03-01 10:15:12 +01:00
parent bc1c6b85bc
commit b950238865
6 changed files with 129 additions and 53 deletions

View File

@@ -79,16 +79,8 @@ class HiltesImport
*/
protected function getFiles(bool $delta = false): bool
{
$finder = Finder::create();
$finder
->in($this->currentDirPath . '/hiltes/h2c/')
->depth(0);
if ($delta) {
$finder->name('/_D/');
} else {
$finder->notName('/_D/');
}
$finder = Finder::create()->in($this->currentDirPath . '/hiltes/h2c/')->depth(0);
$delta ? $finder->name('/_D/') : $finder->notName('/_D/');
if ($finder->hasResults()) {
foreach ($finder as $file) {