File: validate.rst

package info (click to toggle)
python-pathvalidate 3.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 692 kB
  • sloc: python: 3,987; makefile: 262; sh: 6
file content (18 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. _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