true if the path is a block device, false otherwise.bool isBlockDevice() constReturns 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.
true if the path is a block device, false otherwise.