MCPcopy Index your code
hub / github.com/python/cpython / is_block_device

Method is_block_device

Lib/pathlib/__init__.py:913–920  ·  view source on GitHub ↗

Whether this path is a block device.

(self)

Source from the content-addressed store, hash-verified

911 return os.path.isjunction(self)
912
913 def is_block_device(self):
914 """
915 Whether this path is a block device.
916 """
917 try:
918 return S_ISBLK(self.stat().st_mode)
919 except (OSError, ValueError):
920 return False
921
922 def is_char_device(self):
923 """

Calls 2

statMethod · 0.95
S_ISBLKFunction · 0.90

Tested by 3