Ignore:
Timestamp:
20/04/07 16:42:37 (13 years ago)
Author:
selatham
Message:

fixed bug in ingest - not clearing out intermediate directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r2329 r2423  
    154154# Create/clear the directory for the 'out' namespace corrected copy of the discovery records. 
    155155if os.path.isdir("/usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected"): 
    156     commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\}" 
     156    commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected/{\}" 
    157157    print "Executing : " + commandline 
    158158    status = os.system(commandline) 
Note: See TracChangeset for help on using the changeset viewer.