Changeset 339


Ignore:
Timestamp:
02/06/15 11:29:06 (5 years ago)
Author:
astephen
Message:

Added a new command-line argument: -l

This specifies a text file containing one data file path per line and can
be used as an alternative to -f, -d and -D.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/ccinit.py

    r333 r339  
    99  :--ld: <log file directory>:  ## directory to take log files; 
    1010  :-R: <record file name>: file name for file to take one record per file checked; 
     11  :-l: <file list file>: a file containing one data file to check per line; 
    1112  :--cae: "catch all errors": will trap exceptions and record in  log files, and then continue. Default is to stop after unrecognised exceptions. 
    1213  :--log: <single|multi>:  Set log file management option -- see "Single log" and "Multi-log" below. 
     
    2728 
    2829""" 
    29 ceda_cc -p <project> [-f <NetCDF file>|-d <directory containing files>|-D <root of directory tree>] [other options] 
     30ceda_cc -p <project> [-f <NetCDF file>|-d <directory containing files>|-D <root of directory tree>|-l <file list file>] [other options] 
    3031 
    3132With the "-D" option, all files in the directory tree beneath the given directory will be checked. With the "-d" option, only files in the given directory will be checked. 
     
    126127              flist.append( fpath ) 
    127128        self.source = '%s/.....' % fdir 
     129      elif next == '-l': 
     130        flist = open(args.pop(0)).read().split() 
     131        self.source = flist[0] 
    128132      elif next == '-R': 
    129133        self.recordFile = args.pop(0) 
Note: See TracChangeset for help on using the changeset viewer.