+
+ # Returns true if it is a regular file (not a device file, pipe, sockect, ...)
+ fun is_reg: Bool `{ return S_ISREG(recv->st_mode); `}
+ # Returns true if it is a directory
+ fun is_dir: Bool `{ return S_ISDIR(recv->st_mode); `}
+ # Returns true if it is a character device
+ fun is_chr: Bool `{ return S_ISCHR(recv->st_mode); `}
+ # Returns true if it is a block device
+ fun is_blk: Bool `{ return S_ISBLK(recv->st_mode); `}
+ # Returns true if the type is fifo
+ fun is_fifo: Bool `{ return S_ISFIFO(recv->st_mode); `}
+ # Returns true if the type is a link
+ fun is_lnk: Bool `{ return S_ISLNK(recv->st_mode); `}
+ # Returns true if the type is a socket
+ fun is_sock: Bool `{ return S_ISSOCK(recv->st_mode); `}