docs: def upload_directory(
          self, path, source=None, description=None,
          related_article=None, published_url=None, access='private',
          project=None, data=None, secure=False, force_ocr=False
      ):
          """
          Uploads all the PDFs in the provided directory.
  
          Example usage:
  
              >> documentcloud.documents.upload_directory("/home/ben/pdfs/")
  
          Returns a list of the documents created during the upload.
  
          Based on code developed by Mitchell Kotler and refined
          by Christopher Groskopf.
          """
          # Loop through the path and get all the files
          path_list = []
          for (dirpath, dirname, filenames) in os.walk(path):
              path_list.extend([
                  os.path.join(dirpath, i) for i in filenames
                  if i.lower().endswith(".pdf")
              ])
          # Upload all the pdfs
          obj_list = []
          for pdf_path in path_list:
              obj = self.upload(
                  pdf_path, source=source, description=description,
                  related_article=related_article, published_url=published_url,
                  access=access, project=project, data=data, secure=secure,
                  force_ocr=force_ocr
              )
              obj_list.append(obj)
          # Pass back the list of documents
          return obj_list