# vtk_path

## vtk_path_canonicalize

``````Usage:

Description:
This procedure computes the canonical path of a file. A canonical path is one without symbolic links, without "dots", and, when possible, in logical form, as defined by the equivalence rules. With the "-ignorelinks" option, it does not expand/follow symlinks.

Returns       The canonical version of the path.

Examples
vtk_path_canonicalize .
\${TOP}/units/abc

``````

vtk_equivalence

## vtk_path_expand

``````Usage:

Description:
This procedure returns the expanded version of a path, i.e. a path where the logical

Examples:
vtk_path_expand .
/export/projects/chip1/units/abc

Returns:
The expanded version of the path.``````

vtk_equivalence

## vtk_path_flush_caches

No information available.

## vtk_path_flush_nfs_cache

No information available.

## vtk_path_get_relative

``````Usage:
vtk_path_get_relative path

Description:

``````

## vtk_path_is_excluded

``````Usage:
vtk_path_is_excluded path

Description:
This procedure tests whether the path is excluded by the exclusion rules.
The path must be passed in canonical form. The old name 'vtk_path_exclude' is also supported for
backwards compatibility.

Examples:
vtk_path_is_excluded \$env(VOVDIR)/etc
0
vtk_path_is_excluded [vtk_path_canonicalize \$env(VOVDIR)/etc]
1

Returns:
1 if the file is to be excluded, 0 otherwise.

``````

vtk_exclude_rule

``````Usage:

Description:

Example:

Returns:
TCL_OK

``````

## vtk_path_permissions

No information available.

## vtk_path_print_caches

No information available.

## vtk_path_realpath

``````Usage:
vtk_path_realpath path

Description:
This procedure returns the full expanded version of a path, with all symlinks resolved. In other words, the full real path.

Examples:
vtk_path_realpath .
/export/projects/chip1/units/abc

Returns:
The expanded full real version of the path.
``````

vtk_equivalence

## vtk_path_relativize

``````Usage:
vtk_path_relativize path

Description:
Return the relative name of the given full path with respect to the current directory.
This procedure is useful to compute portable command lines, with relative paths instead of hard-coded full paths.
This procedure is named similarly to vtk_path_canonicalize. The relative path will have a number of .. components
up to a maximum specified by argument maxdotdot which has a default value of 5.

``````