paths(3)



fileutil::paths(3tcl)                                    fileutil::paths(3tcl)

______________________________________________________________________________

NAME
       fileutil::paths - Manage search path pools

SYNOPSIS
       package require Tcl  8.4

       package require fileutil::paths  ?1?

       ::fileutil::paths poolName

       poolName method ?arg arg ...?

       poolName add path

       poolName clear

       poolName paths

       poolName remove path

______________________________________________________________________________

DESCRIPTION
       Provides a snit class whose instances manage a pool of (search) paths.

API
       The main command provides construction of search path pools:

       ::fileutil::paths poolName
              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:

              poolName method ?arg arg ...?
                     method and arguments determine the exact behavior of  the
                     command.

              If  poolName is specified as %AUTO% a unique name will be gener-
              ated 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:

       poolName add path
              Adds  the  path to the pool.  Nothing is done if the path is al-
              ready known to the pool.  The result of the command is the empty
              string.

       poolName clear
              Clears  the  entire pool. In other words, removes all paths from
              it.  The result of the command is the empty string.

       poolName paths
              Returns the list of all paths known to the pool,  in  the  order
              they were added.

       poolName remove path
              Removes the path from the pool, if it is known to the pool.  Un-
              known paths are ignored without error.  The result of  the  com-
              mand is the empty string.

BUGS, IDEAS, FEEDBACK
       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 [http://core.tcl.tk/tcllib/reportlist].  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 out-
       put 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.

tcllib                                 1                 fileutil::paths(3tcl)

Man(1) output converted with man2html
list of all man pages