ID EN
Pathlib

is_char_device

Python 3.11

Return True if the path points to a character device (or a symbolic link pointing to a character device), False if it points to another kind of file.

Syntax

PYTHON
Path.is_char_device()