true if the path is a character device, false otherwise.bool isCharDevice() constReturns 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.
true if the path is a character device, false otherwise.