code: private function getFiles($pattern)
      {
          $files = $this->filesystem->glob(
              $this->storagePath.DIRECTORY_SEPARATOR.$pattern, GLOB_BRACE
          );
  
          return array_filter(array_map('realpath', $files));
      }
docs: Get all files.
  
  @param string $pattern
  
  @return array