From d5edb77db4c7f1617ab10facf5a6c821e126abe6 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 24 Apr 2024 09:56:04 +0100 Subject: [PATCH] Add description of ansible.utils.path.unfrackpath() basedir argument --- lib/ansible/utils/path.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/utils/path.py b/lib/ansible/utils/path.py index ac0b450839f..2b25342ed4c 100644 --- a/lib/ansible/utils/path.py +++ b/lib/ansible/utils/path.py @@ -33,6 +33,9 @@ def unfrackpath(path, follow=True, basedir=None): :arg path: A byte or text string representing a path to be canonicalized :arg follow: A boolean to indicate of symlinks should be resolved or not + :arg basedir: A byte string, text string, PathLike object, or `None` + representing where a relative path should be resolved from. + `None` will be substituted for the current working directory. :raises UnicodeDecodeError: If the canonicalized version of the path contains non-utf8 byte sequences. :rtype: A text string (unicode on pyyhon2, str on python3).