mglib

Personal IDL library for M. Galloy

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

cmdline_tools/

mg_file_which.pro


Routines

top 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: Wed May 14 15:07:14 2014
Lines: 25
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.