MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_block_device

Method is_block_device

Lib/pathlib/__init__.py:715–722  ·  view source on GitHub ↗

Whether this path is a block device.

(self)

Source from the content-addressed store, hash-verified

713 return os.path.isjunction(self)
714
715 def is_block_device(self):
716 """
717 Whether this path is a block device.
718 """
719 try:
720 return S_ISBLK(self.stat().st_mode)
721 except (OSError, ValueError):
722 return False
723
724 def is_char_device(self):
725 """

Calls 2

statMethod · 0.95
S_ISBLKFunction · 0.90

Tested by 3