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

createDirHier

createDirHier( 
t_pathName 
) 
=> t / nil

Description

Creates all directories specified in the given SKILL path that do not already exist

The permissions associated with new directories are subject to the file creation mask on systems supporting that concept. If the directory with the specified name already exists, nil is returned. The directory names in the given SKILL path can be specified with either absolute or relative; the SKILL path is used in the latter case.

A path that is anchored to the current directory, for example, ./, ../, or ../../.., etc., is not considered as a relative path.

Arguments

t_pathName

Specifies a (hierarchical) SKILL path consisting of all the directories that need to be created.

Value Returned

t

All the directories specified in the given SKILL path are created

nil

A directory with the same name already exists or an incorrect SKILL path is specified

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

The following example creates the directories /dir1/dir2/ as specified in the given SKILL path.

createDirHier(“./dir1/dir2”)

Related Topics

Environment Functions

createDir


Return to top
 ⠀
X