vtk_path
vtk_path_canonicalize
Usage:
vtk_path_canonicalize path [-ignorelinks]
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
See Also
vtk_path_expand
Usage:
vtk_path_expand path [-ignorelinks]
Description:
This procedure returns the expanded version of a path, i.e. a path where the logical
name has been expanded. With the -ignorelinks option, it does not expand/follow symlinks.
Examples:
vtk_path_expand .
/export/projects/chip1/units/abc
Returns:
The expanded version of the path.
See Also
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:
Old name, for backwards compatibility. Please use vtk_path_relativize instead.
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.
See Also
vtk_path_mk_symlink
Usage:
vtk_path_mk_symlink path symbolic
Description:
This procedure make symbolic link
Example:
vtk_path_mk_symlink ../mypath/dir1/dir2 ./linkTodir2
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.
See Also
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.