code: private function getJobFiles($path)
      {
          $files = [];
  
          foreach (glob($path) as $filename) {
              if (is_dir($filename)) {
                  continue;
              }
  
              $files[] = $filename;
          }
  
          return $files;
      }
docs: @param $path
  
  @return array