Predicates

function b? pathname

is pathname a block special device?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function c? pathname

is pathname a character special device?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function d? pathname

is pathname a directory?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function e? pathname

does pathname exist?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function f? pathname

is pathname a regular file?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function l? pathname

is pathname a symlink?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function p? pathname

is pathname a FIFO?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function r? pathname

does pathname pass access (pathname, R_OK)?

Param pathname:

file to test

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function s? pathname

is pathname a socket?

Param pathname:

pathname to stat

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function T? fd

is fd a terminal?

Param fd:

file descriptor to stat

Type fd:

C/int

Return:

#t or #f

Rtype:

boolean

function w? pathname

does pathname pass access (pathname, W_OK)?

Param pathname:

file to test

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

function x? pathname

does pathname pass access (pathname, X_OK)?

Param pathname:

file to test

Type pathname:

string

Return:

#t or #f

Rtype:

boolean

Raises ^rt-libc-format-error:

if pathname contains an ASCII NUL

Last built at 2024-05-17T06:10:48Z+0000 from 62cca4c (dev) for Idio 0.3.b.6