code: def is_char_device(self):
          
          try:
              return S_ISCHR(self.stat().st_mode)
          except OSError as e:
              if e.errno != ENOENT:
                  raise
              # Path doesn't exist or is a broken symlink
              # (see https://bitbucket.org/pitrou/pathlib/issue/12/)
              return False
docs: Whether this path is a character device.