my @files = File::Find::Rule->file()->name('errors.txt')->maxdepth(1)->in($dir);