File: sanitize.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 (27 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.. _example-sanitize-filename:

Sanitize a filename
----------------------------
The :py:func:`.sanitize_filename()` function returns a filename which replaced invalid character(s)
for a filename within the argument.

.. include:: sanitize_filename_code.txt


.. _example-sanitize-file-path:

Sanitize a filepath
----------------------------
The :py:func:`.sanitize_filepath()` function returns a filepath which replaced invalid character(s)
for a filepath within the argument.

.. include:: sanitize_filepath_code.txt


.. _example-sanitize-symbol:

Replace symbols
----------------------------
The :py:func:`.replace_symbol()` function returns a string which replaced symbol(s) within the argument.

.. include:: sanitize_replace_symbol_code.txt