Changeset 242 for trunk/SRC/Utilities/find.pro
- Timestamp:
- 04/06/07 10:35:17 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/find.pro
r239 r242 7 7 ; By default look for files included in !path 8 8 ; 9 ; all file_searchkeywords can be used.9 ; all <proidl>file_search</proidl> keywords can be used. 10 10 ; 11 11 ; @categories 12 12 ; find a file 13 13 ; 14 ; @param FILEIN {in}{required} 15 ; A scalar or array variable of string type, containing 16 ; file names to match. Input names specifications may contain 14 ; @param FILEIN {in}{required} {type=scalar string or array of strings} 15 ; File name[s] to match. Input names specifications may contain 17 16 ; wildcard characters, enabling them to match multiple files 18 ; (see file_searchfor more informations). By default and if19 ; necessary, findis looking for filename and also for filename17 ; (see <proidl>file_search</proidl> for more informations). By default and if 18 ; necessary, <pro>find</pro> is looking for filename and also for filename 20 19 ; completed with '.pro' 21 20 ; … … 23 22 ; activate this keyword to stop looking for the file as soon as we found one. 24 23 ; 25 ; @keyword IODIRECTORY {default=['.',!path]} 26 ; A scalar or array variable of string type, containing 27 ; directories names where we are looking for the file. 24 ; @keyword IODIRECTORY {type=scalar string or array of strings} {default=['.',!path]} 25 ; Directories names where we are looking for the file. 28 26 ; Different directories can be separated by 29 27 ; path_sep(/search_path) (':' on unix type machine) as it is done … … 47 45 ; @keyword RECURSIVE 48 46 ; performs recursive searching of directory hierarchies. 49 ; In a recursive search, findlooks recursively for any and all47 ; In a recursive search, <pro>find</pro> looks recursively for any and all 50 48 ; subdirectories in the file hierarchy rooted at the IODIRECTORY argument. 51 49 ; 52 50 ; @keyword REPERTOIRE 53 ; obsolete. keep for compatibility, use directorykeyword51 ; obsolete. keep for compatibility, use IODIRECTORY keyword 54 52 ; 55 53 ; @keyword UNIQUE … … 57 55 ; 58 56 ; @keyword TRYFIND 59 ; if the file was not found and this keyword is activated, find will call 57 ; if the file was not found and this keyword is activated, <pro>find</pro> 58 ; will call 60 59 ; itself with the keywords /LOOKALLDIR and /FIRSTFOUND to try to find 61 60 ; the file we are looking for. Note that if the file was found at the … … 68 67 ; A scalar or array variable of string type, containing the 69 68 ; name (with the full path of the matching files. If no files 70 ; exist with names matching the input arguments, findreturns69 ; exist with names matching the input arguments, <pro>find</pro> returns 71 70 ; the scalar string : 'NOT FOUND' 72 71 ; 73 72 ; @examples 74 ;75 73 ; IDL> print, find('*loadct') 76 74 ; /usr/local/rsi/idl_6.0/lib/utilities/xloadct.pro … … 106 104 ; @version 107 105 ; $Id$ 106 ; 108 107 ;- 109 108 ; … … 112 111 , ONLYNC = onlync, UNIQUE = unique, FIRSTFOUND = firstfound $ 113 112 , LOOKALLDIR = LOOKALLDIR, TRYFIND = tryfind, _EXTRA = ex 114 ; define where we look for the file115 113 ; 116 114 compile_opt idl2, strictarrsubs 117 115 ; 116 ; define where we look for the file 118 117 cd, current = current 119 118 current = (file_search(current, /test_directory, /mark_directory))[0]
Note: See TracChangeset
for help on using the changeset viewer.