Fixes wrong documentation
This commit is contained in:
parent
0ab44c4f4a
commit
d8ad0a14af
@ -342,9 +342,13 @@ def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
pathstr: The path as string.
|
pathstr: The path as string.
|
||||||
|
cwd: The current working directory, or None.
|
||||||
|
relative: Whether to resolve relative files.
|
||||||
|
check_exists: Whether to check if the file
|
||||||
|
actually exists of filesystem.
|
||||||
|
|
||||||
Return:
|
Return:
|
||||||
True if it is a valid path, False otherwise.
|
The path if it is a valid path, None otherwise.
|
||||||
"""
|
"""
|
||||||
pathstr = pathstr.strip()
|
pathstr = pathstr.strip()
|
||||||
log.url.debug("Checking if '{}' is a path".format(pathstr))
|
log.url.debug("Checking if '{}' is a path".format(pathstr))
|
||||||
|
Loading…
Reference in New Issue
Block a user