cmdline_tools

Tools for command line use of IDL

single page | use frames     summary     class     fields     routine details     file attributes

./

mg_file_which.pro


top source mg_file_which

result = mg_file_which( [path], file [, /include_current_dir] [, /all])

Wrapper for FILE_WHICH, but has an ALL keyword to find all matches.

Return value

strarr

Parameters

path in optional type=string

path to search, delimited by path_sep(/search_path)

file in required type=string

file to search for, may include wildcards

Keywords

include_current_dir in optional type=boolean

set to include current directory in the search path

all in optional type=boolean

set to return all matches instead of just the first one

Examples

For example, try:

IDL> print, mg_file_which('mgcoarraylist__define.pro', /all) /Users/mgalloy/projects/dist_tools/src/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/idllib/src/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/mgunit/src/dist_tools/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/idldoc/src/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/idldoc/src/dist_tools/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/idldoc/src/collection/mgcoarraylist__define.pro /Users/mgalloy/projects/idldoc/src/dist_tools/collection/mgcoarraylist__define.pro

File attributes

Modification date: Fri Feb 18 09:38:31 2011
Lines: 63
Docformat: rst rst