Ignore:
Timestamp:
08/09/06 10:53:58 (7 years ago)
Author:
mglb1
Message:

Return immediately if no results are returned from the ls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccsd/trunk/crcnetd/_utils/ccsd_cfengine.py

    r943 r954  
    10451045        entry["age_rounded"] = roundTime(time.time() - entry["time"]) 
    10461046 
    1047     # Return now if there are multiple files 
    1048     if len(entries) > 1: 
     1047    # Return now if there are multiple files or no files 
     1048    if len(entries) == 0 or len(entries) > 1: 
    10491049        return entries 
    10501050    # or a single directory 
Note: See TracChangeset for help on using the changeset viewer.