• Publicity: Public Only All

10-utilities-procs.tcl

Utility routines needed by the bootstrapping process.

Location:
packages/acs-bootstrap-installer/tcl/10-utilities-procs.tcl
Created:
4 Apr 2001
Author:
Don Baccus (dhogaza@pacifier.com
CVS Identification:
$Id: 10-utilities-procs.tcl,v 1.14 2024/09/11 06:15:47 gustafn Exp $

Procedures in this file

Detailed information

ad_find_all_files (public)

 ad_find_all_files [ -include_dirs include_dirs ] \
    [ -include_bak_dirs include_bak_dirs ] [ -max_depth max_depth ] \
    [ -check_file_func check_file_func ] path

Returns a list of full paths to all files under $path in the directory tree (descending the tree to a depth of up to $max_depth). Clients should not depend on the order of files returned. Per default, the contents of .bak directories (as produced e.g. via "install from repository" are not included. To include these, add the flag "-include_bak_dirs 1" to the invocation.

Switches:
-include_dirs (optional, defaults to "0")
-include_bak_dirs (optional, defaults to "0")
-max_depth (optional, defaults to "10")
-check_file_func (optional)
Parameters:
path (required)

Testcases:
get_package_files, files__tcl_file_common_errors
[ show source ]