Merge pull request #4630 from mirskiy/docs-mention-relative

Update send_from_directory docstring to mention relative root for `directory`
This commit is contained in:
David Lord 2022-06-09 09:24:26 -07:00 committed by GitHub
commit ebc0d30dd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -649,7 +649,8 @@ def send_from_directory(
If the final path does not point to an existing regular file,
raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.
:param directory: The directory that ``path`` must be located under.
:param directory: The directory that ``path`` must be located under,
relative to the current application's root path.
:param path: The path to the file to send, relative to
``directory``.
:param kwargs: Arguments to pass to :func:`send_file`.