Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

isLink

isLink( 
S_name 
[ tl_path ] 
) 
=> t / nil

Description

Checks if a path exists and if it is a symbolic link.

When S_name is a relative path, the current SKILL path is used if it’s non-nil. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.

Arguments

S_name

Path you want to check.

tl_path

List of paths that override the SKILL path.

Value Returned

t

The name exists and it is a symbolic link.

nil

The name exists and is not a symbolic name or if S_name does not exist at all.

Examples

isLink("/usr/bin")
=> nil
isLink("/usr/spool")
=> t   ;Assuming it's a link to /var/spool

Related Topics

isFile


Return to top
 ⠀
X