Changeset 93 for trunk/SRC/Utilities/isafile.pro
- Timestamp:
- 06/07/06 19:12:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/isafile.pro
r69 r93 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME: isafile 6 ; 7 ; PURPOSE: same as find.pro except that as long as the file is 'NOT FOUND', 5 ; same as find.pro except that as long as the file is 'NOT FOUND', 8 6 ; isafile calls dialog_pickfile, to ask the user to select a file. 9 7 ; 10 ; CATEGORY:io8 ; @categories io 11 9 ; 12 ; CALLING SEQUENCE:filename = isafile([filein])13 10 ; 14 ; INPUTS:optional:a proposed name. If neither filein11 ; @param filein {in}{optional} a proposed name. If neither filein 15 12 ; input parameter of filename keyword are defined, 16 13 ; the ask the user to choose a file. 17 14 ; 18 ; KEYWORD PARAMETERS:15 ; @keyword FILENAME a proposed filename. 19 16 ; 20 ; FILENAME: a proposed filename. 21 ; 22 ; IODIRECTORY: a directory where we look for the file. this 17 ; @keyword IODIRECTORY a directory where we look for the file. this 23 18 ; keyword is taken into account only if the dirmame 24 19 ; of filein or filename is '.' 25 20 ; 26 ; /NEW:to specify that filename is a new file and that21 ; @keyword /NEW to specify that filename is a new file and that 27 22 ; we should check only its path 28 23 ; 29 ; ONLYPRO:force to look only at file ending with .pro24 ; @keyword ONLYPRO force to look only at file ending with .pro 30 25 ; 31 ; ONLYNC:force to look only at file ending with .nc26 ; @keyword ONLYNC force to look only at file ending with .nc 32 27 ; 33 ; RECURSIVE:performs recursive searching of directory hierarchies.28 ; @keyword RECURSIVE performs recursive searching of directory hierarchies. 34 29 ; In a recursive search, find looks recursively for any and all 35 30 ; subdirectories in the file hierarchy rooted at the IODIRECTORY 36 31 ; argument. 37 32 ; 38 ; all find, file_search and dialog_pickfile keywords (like title) 33 ; @file_comments all find, file_search and dialog_pickfile keywords (like title) 34 can be used 39 35 ; 40 ; OUTPUTS:the filename with its path36 ; @returns the filename with its path 41 37 ; 42 ; COMMON BLOCKS:none 43 ; 44 ; SIDE EFFECTS: 45 ; 46 ; RESTRICTIONS: 47 ; 48 ; EXAMPLE: 38 ; @examples 49 39 ; 50 40 ; IDL> print, isafile('/Users/sebastie/SAXO_RD/Commons/cm_4mesh.pro') … … 60 50 ; IDL> print, isafile('fake_file.pro') 61 51 ; 62 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr)52 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 63 53 ; 11/2/2000 64 54 ; June 2005: Sebastien Masson: cleaning, use for file_* functions
Note: See TracChangeset
for help on using the changeset viewer.