Ignore:
Timestamp:
Feb 19, 2008, 1:44:26 PM (17 years ago)
Author:
ole
Message:

Nicer output of data_audit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/data_audit.py

    r5040 r5052  
    6464    all_files = 0
    6565    ok_files = 0
    66     first_time = True
     66    files_found_in_dir = True
    6767    all_files_accounted_for = True
    6868    for dirpath, filename in identify_datafiles(directory,
     
    7575            dir_change = True
    7676            oldpath = dirpath
     77            files_found_in_dir = False # Reset for this dir
    7778        else:
    7879            dir_change = False
     
    118119
    119120
    120 
    121        # Only print status if there is a problem (no news is good news)
    122         if dir_change is True:
     121        # Decide if dir header needs to be printed           
     122        if status != 'OK':
     123            files_found_in_dir = True
     124           
     125                   
     126        # Only print status if there is a problem (no news is good news)
     127        if dir_change is True and files_found_in_dir is True:
    123128            print
    124129            print '------------------------------------'
Note: See TracChangeset for help on using the changeset viewer.