Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update send_from_directory docstring to mention relative root for `directory`

authored by David Lord · committed by GitHub · parents c7f2ab8, 9934528 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/flask/helpers.py+2 added-1 removed
647 unmodified lines
648649 If the final path does not point to an existing regular file,650 raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.651652 :param directory: The directory that ``path`` must be located under.652 :param directory: The directory that ``path`` must be located under,653 relative to the current application's root path.654 :param path: The path to the file to send, relative to655 ``directory``.656 :param kwargs: Arguments to pass to :func:`send_file`.657
134 unmodified lines