Changeset 93 for trunk/SRC/Utilities/find.pro
- Timestamp:
- 06/07/06 19:12:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/find.pro
r77 r93 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME:find 6 ; 7 ; PURPOSE: based on file_search, but it is possible to speficy 5 ; based on file_search, but it is possible to speficy 8 6 ; a set of possibles names and a different set of 9 7 ; possibles directories names. 10 8 ; By defaut look for files included in !path 11 9 ; 12 ; CATEGORY:find a file10 ; @categories find a file 13 11 ; 14 ; CALLING SEQUENCE: found = find(filename) 15 ; 16 ; INPUTS: A scalar or array variable of string type, containing 12 ; @param filein {in}{required} A scalar or array variable of string type, containing 17 13 ; file names to match. Input names specifications may contain 18 14 ; wildcard characters, enabling them to match multiple files … … 21 17 ; completed with '.pro' 22 18 ; 23 ; KEYWORD PARAMETERS: 24 ; 25 ; FIRSTFOUND: activate this keyword to stop looking for the file as 19 ; @keyword FIRSTFOUND activate this keyword to stop looking for the file as 26 20 ; soon as we found one. 27 21 ; 28 ; IODIRECTORY:A scalar or array variable of string type, containing22 ; @keyword IODIRECTORY A scalar or array variable of string type, containing 29 23 ; directories names where we are looking for the file. by defaut 30 24 ; we use !path. Different directories can be separated by … … 34 28 ; keyword is not taken into account. 35 29 ; 36 ; LOOKALLDIR:activate to look for the file with a recursive search30 ; @keyword LOOKALLDIR activate to look for the file with a recursive search 37 31 ; in iodir, homedir, !path + the DATA:TestsData directory if it exists. 38 32 ; 39 ; NOPRO:activate to avoid the automatic search of filename33 ; @keyword NOPRO activate to avoid the automatic search of filename 40 34 ; completed with '.pro' 41 35 ; 42 ; ONLYPRO:force to look only at file ending with .pro36 ; @keyword ONLYPRO force to look only at file ending with .pro 43 37 ; 44 ; ONLYNC:force to look only at file ending with .nc38 ; @keyword ONLYNC force to look only at file ending with .nc 45 39 ; 46 ; RECURSIVE:performs recursive searching of directory hierarchies.40 ; @keyword RECURSIVE performs recursive searching of directory hierarchies. 47 41 ; In a recursive search, find looks recursively for any and all 48 42 ; subdirectories in the file hierarchy rooted at the IODIRECTORY 49 43 ; argument. 50 44 ; 51 ; REPERTOIRE:obsolete. keep for compatibility, use directory keyword45 ; @keyword REPERTOIRE obsolete. keep for compatibility, use directory keyword 52 46 ; 53 ; UNIQUE:activate to make sure that each element of the output47 ; @keyword UNIQUE activate to make sure that each element of the output 54 48 ; vector is unique. 55 49 ; 56 ; all file_search keywords50 ; @file_comments all file_search keywords can be used. 57 51 ; 58 ; OUTPUTS:A scalar or array variable of string type, containing the52 ; @returns A scalar or array variable of string type, containing the 59 53 ; name (with the full path of the matching files. If no files 60 54 ; exist with names matching the input arguments, find returns 61 55 ; the scalar string : 'NOT FOUND' 62 56 ; 63 ; COMMON BLOCKS: none 64 ; 65 ; SIDE EFFECTS: 66 ; 67 ; RESTRICTIONS: 68 ; 69 ; EXAMPLE: 57 ; @examples 70 58 ; 71 59 ; IDL> print, find('*loadct') … … 94 82 ; /usr/local/rsi/idl_6.0/lib/mesh_obj.pro 95 83 ; 96 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)84 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 97 85 ; 28/4/1999 98 86 ; 6/7/1999: compatibilite mac et windows
Note: See TracChangeset
for help on using the changeset viewer.