:Sample Code:
    .. code-block:: python

        from pathvalidate import is_valid_filepath, sanitize_filepath

        fpath = "fi:l*e/p\"a?t>h|.t<xt"
        print(f"is_valid_filepath('{fpath}') return {is_valid_filepath(fpath)}\n")

        sanitized_fpath = sanitize_filepath(fpath)
        print(f"is_valid_filepath('{sanitized_fpath}') return {is_valid_filepath(sanitized_fpath)}\n")

:Output:
    .. code-block:: none

        is_valid_filepath('fi:l*e/p"a?t>h|.t<xt') return False

        is_valid_filepath('file/path.txt') return True
