Syntax
isblock(string)
Description
The isblock() function returns true if the path points to a block device , false if it points to another kind of file.
false is also returned if the path doesn’t exist
Example
include("file") println(isblock("/dev/loop0")) println(isblock("/etc/passwd")) println(isblock("/tmp/noexist")) true false false