Whether this path is a character device.
(self)
| 1609 | return False |
| 1610 | |
| 1611 | def is_char_device(self): |
| 1612 | """ |
| 1613 | Whether this path is a character device. |
| 1614 | """ |
| 1615 | try: |
| 1616 | return S_ISCHR(self.stat().st_mode) |
| 1617 | except OSError as e: |
| 1618 | if e.errno not in (ENOENT, ENOTDIR): |
| 1619 | raise |
| 1620 | # Path doesn't exist or is a broken symlink |
| 1621 | # (see https://bitbucket.org/pitrou/pathlib/issue/12/) |
| 1622 | return False |
| 1623 | |
| 1624 | def is_fifo(self): |
| 1625 | """ |