.. _example-validate-filename:

Validate a filename
----------------------------
The :py:func:`.validate_filename()` function raise ``ValueError`` if
the name includes invalid character(s) for a filename.

.. include:: validate_filename_code.txt


.. _example-validate-file-path:

Validate a file path
----------------------------
The :py:func:`.validate_filepath()` function raise ``ValueError`` if
the name includes invalid character(s) for a file path.

.. include:: validate_filepath_code.txt
