diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index 42f222a42..e7e2ebe97 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -336,11 +336,12 @@ def raise_cmdexc_if_invalid(url): if not url.isValid(): raise cmdexc.CommandError(get_errstring(url)) + def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False): - """Check if path is a valid path + """Check if path is a valid path. Args: - pathstr: The path as string + pathstr: The path as string. Return: True if it is a valid path, False otherwise.