Path.isBlockDevice

bool isBlockDevice() const

Returns true if the path is a block device.

On POSIX, this checks if the file type is a block device (using stat and S_ISBLK). On Windows, always returns false.

Inspired by Python's pathlib.Path.is_block_device.

Returns

true if the path is a block device, false otherwise.