Path.isCharDevice

bool isCharDevice() const

Returns true if the path is a character device.

On POSIX, this checks if the file type is a character device (using stat and S_ISCHR). On Windows, always returns false.

Inspired by Python's pathlib.Path.is_char_device.

Returns

true if the path is a character device, false otherwise.