MCPcopy
hub / github.com/cool-RR/PySnooper / is_fifo

Method is_fifo

tests/mini_toolbox/pathlib.py:1624–1635  ·  view source on GitHub ↗

Whether this path is a FIFO.

(self)

Source from the content-addressed store, hash-verified

1622 return False
1623
1624 def is_fifo(self):
1625 """
1626 Whether this path is a FIFO.
1627 """
1628 try:
1629 return S_ISFIFO(self.stat().st_mode)
1630 except OSError as e:
1631 if e.errno not in (ENOENT, ENOTDIR):
1632 raise
1633 # Path doesn't exist or is a broken symlink
1634 # (see https://bitbucket.org/pitrou/pathlib/issue/12/)
1635 return False
1636
1637 def is_socket(self):
1638 """

Callers

nothing calls this directly

Calls 1

statMethod · 0.95

Tested by

no test coverage detected