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

getDirFiles

getDirFiles( 
S_name 
) 
=> l_strings

Description

Returns a list of the names of all files and directories, including . and .., in a directory.

Uses the current SKILL path for relative paths. 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

Name of the directory in either string or symbol form.

Value Returned

l_strings

List of names of all files and directories in a given directory name (including . and ..).

Signals an error if the directory does not exist or is inaccessible.

Examples

getDirFiles(car(getInstallPath()))
=> ("." ".." "bin" "cdsuser" "etc" "group" "include" "lib" "pvt" "samples" "share" "test" "tools" "man" "local" )

Related Topics

gets

getSkillPath


Return to top
 ⠀
X