topfind find a file
Return value
A scalar or array variable of string type, containing the
name (with the full path of the matching files. If no files
exist with names matching the input arguments, find returns
the scalar string : 'NOT FOUND'
Parameters
filein
in
required
Keywords
IODIRECTORY
RECURSIVE
REPERTOIRE
NOPRO
ONLYPRO
ONLYNC
UNIQUE
FIRSTFOUND
LOOKALLDIR
Examples
IDL> print, find('*loadct')
/usr/local/rsi/idl_6.0/lib/utilities/xloadct.pro
/usr/local/rsi/idl_6.0/lib/loadct.pro
IDL> print, find('*loadct', iodir=!dir,/recursive)
/usr/local/rsi/idl_6.0/lib/loadct.pro
/usr/local/rsi/idl_6.0/lib/utilities/xloadct.pro
IDL> print, find('*loadct.pro')
/usr/local/rsi/idl_6.0/lib/utilities/xloadct.pro
/usr/local/rsi/idl_6.0/lib/loadct.pro
IDL> print, find('*loadct',/nopro)
NOT FOUND
IDL> print, find('*loadct', iodir = '/usr/local/rsi/idl_6.0/lib')
/usr/local/rsi/idl_6.0/lib/loadct.pro
IDL> print, find('*loadct', iodir = '/usr/local/rsi/idl_6.0/lib', /test_write)
NOT FOUND
IDL> print, find('*loadct', iodir = '/usr/local/rsi/idl_6.0/lib', /recursive)
/usr/local/rsi/idl_6.0/lib/loadct.pro
/usr/local/rsi/idl_6.0/lib/utilities/xloadct.pro
IDL> print, find('mesh*', iodirectory = [iodir, !path])
/Users/sebastie/DATA/ORCA2/meshmaskORCA2closea.nc
/Users/sebastie/IDL/meshmaskclosesea.pro
/Users/sebastie/IDL/meshmaskclosesea.pro~
/Users/sebastie/SAXO_RD/Obsolete/meshlec.pro
/usr/local/rsi/idl_6.0/lib/mesh_obj.pro
Version history
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
28/4/1999
6/7/1999: compatibilite mac et windows
June 2005: Sebastien Masson: cleaning, use for file_* functions