code: def _get_files(self) -> Iterator[str]:
          
          path = os.path.abspath(self.path)
          if os.path.isfile(path):
              path = os.path.dirname(path)
  
          for path in self._get_parents(path):
              for file_path in self._get_files_from_dir(path):
                  yield file_path
docs: Return paths to all requirements files