mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Update documentation of path_to_filesystem
This commit is contained in:
parent
ac687c6179
commit
4fc5e3135a
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ def is_safe_filesystem_path_component(path):
|
|||
def path_to_filesystem(root, *paths):
|
||||
"""Convert path to a local filesystem path relative to base_folder.
|
||||
|
||||
Conversion is done in a secure manner, or raises ``ValueError``.
|
||||
`root` must be a secure filesystem path, it will be prepend to the path.
|
||||
|
||||
Conversion of `paths` is done in a secure manner, or raises ``ValueError``.
|
||||
|
||||
"""
|
||||
paths = [sanitize_path(path).strip("/") for path in paths]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue