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

createDir

createDir( 
S_name 
) 
=> t / nil

Description

Creates a directory.

The directory name can be specified with either an absolute or relative path; the SKILL path is used in the latter case. 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 you are creating.

Value Returned

t

The directory is created.

nil

The directory is not created because it already exists.

Also, if the directory cannot be created because you do not have permission to update the parent directory, or a parent directory does not exist, an error is signaled.

Examples

createDir("/usr/tmp/test") 
=> t
createDir("/usr/tmp/test") 
=> nil   ;Directory already exists.

Related Topics

Environment Functions

changeWorkingDir

createDir


Return to top
 ⠀
X