>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  FILELISTS






      Return specified lists of files in directory.


Calling Sequence



Keyword Parameters


        PREFILTER=pre Given specification on prefiltering full
          list. This is optional. pre is a structure:
          pre={start:n1, len:n2, match:s}
          n1 is substring start char, n2 is substring length,
          s is a string to match against the position defined
          by n1 and n2. This gives the prefiltered list. Example:
          The example will match "fit" at the end of the name but
          not inside the name like "...fit_...".
        FILTER=filt Given specification on splitting prefiltered
          list into sublists. filt is a structure:
          filt={start:n1, len:n2, match:[s1,s2,...,sn]
          n1 is substring start char, n2 is substring length,
          s1, s2, ..., sn are strings to match against the
          position defined by n1 and n2. s1 produces list1,
          s2 list2, and so on. If a list is returned as a
          null string there were no matches for it. Example:
        LIST1=list1, LIST2=list2, ... Returned file lists.
        CNT1=c1, CNT2=c2, ... Number of files on each list.
          8 sublists are allowed.
        ERROR=err Error flag: 0=ok, 1=all files prefiltered out,
          2=other error.


Common Blocks


      Notes: Designed for speed under unix (or linux).filelists.pro
        Trades speed for generality.

Modification History

      R. Sterner, 2003 Apr 18
R. Sterner, 2003 Jun 24 --- Fixed case for no files after prefilter.
  Copyright (C) 2003, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us