util::find_all_files (public)

 util::find_all_files [ -include_dirs include_dirs ] \
    [ -max_depth max_depth ] [ -check_file_func check_file_func ] \
    [ -extension extension ] -path path

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Returns a list of lists with full paths and filename 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. DOES NOT WORK ON WINDOWS (you have to change the splitter and I don't know how to detect a windows system)

Switches:
-include_dirs
(defaults to "0") (optional)
Should directories be included in the list of files.
-max_depth
(defaults to "1") (optional)
How many levels of directories should be searched. Defaults to 1 which is the current directory
-check_file_func
(optional)
Function which can be executed upon the file to determine if it is worth the effort
-extension
(optional)
Only return files with this extension (single value !)
-path
(required)
The path in which to search for the files. Note that this is an absolute Path
Returns:
list of lists (filename and full_path) of all files found.

Partial Call Graph (max 5 caller/called nodes):
%3 ad_file ad_file (public) util::find_all_files util::find_all_files util::find_all_files->ad_file

Testcases:
No testcase defined.
[ show source ]
Show another procedure: