[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]
fileutil::paths - Manage search path pools
package require Tcl 8.4
package require fileutil::paths ?1?
Provides a snit class whose instances manage a pool of (search) paths.
The main command provides construction of search path pools:
Creates a new, empty pool of search paths with an associated global Tcl command whose name is poolName. It may be used to invoke various operations on the pool. It has the following general form:
If poolName is specified as %AUTO% a unique name will be generated by the package itself. The result of the command is the fully-qualified name of the instance command.
The following commands are possible for pool objects:
Adds the path to the pool. Nothing is done if the path is already known to the pool. The result of the command is the empty string.
Clears the entire pool. In other words, removes all paths from it. The result of the command is the empty string.
Returns the list of all paths known to the pool, in the order they were added.
Removes the path from the pool, if it is known to the pool. Unknown paths are ignored without error. The result of the command is the empty string.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.