MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_fifo

Method is_fifo

tools/python-3.11.9-amd64/Lib/pathlib.py:1345–1359  ·  view source on GitHub ↗

Whether this path is a FIFO.

(self)

Source from the content-addressed store, hash-verified

1343 return False
1344
1345 def is_fifo(self):
1346 """
1347 Whether this path is a FIFO.
1348 """
1349 try:
1350 return S_ISFIFO(self.stat().st_mode)
1351 except OSError as e:
1352 if not _ignore_error(e):
1353 raise
1354 # Path doesn't exist or is a broken symlink
1355 # (see http://web.archive.org/web/20200623061726/https://bitbucket.org/pitrou/pathlib/issues/12/ )
1356 return False
1357 except ValueError:
1358 # Non-encodable path
1359 return False
1360
1361 def is_socket(self):
1362 """

Callers

nothing calls this directly

Calls 3

statMethod · 0.95
S_ISFIFOFunction · 0.90
_ignore_errorFunction · 0.85

Tested by

no test coverage detected