lib/gettor/utils.py
def fileIsOlderThan(filename, olderThanDays):
    """Return True if file 'filename' is older than 'olderThandays'
    """
    olderThanDays = int(olderThanDays)
    if olderThanDays is not 0:
        daysold = datetime.now() - timedelta(days=olderThanDays)
        daysold = daysold.timetuple()
        filetimeUnix = os.path.getmtime(filename)
        filetime = localtime(filetimeUnix)
        if daysold < filetime:
            return False
        
    return True
Return True if file 'filename' is older than 'olderThandays'
    
Return True if file 'filename' is older than 'olderThandays'
Return True if file ' filename ' is older than ' olderThandays '
def fileIsOlderThan(filename, olderThanDays):
    olderThanDays = int(olderThanDays)
    if olderThanDays is not 0:
        daysold = datetime.now() - timedelta(days=olderThanDays)
        daysold = daysold.timetuple()
        filetimeUnix = os.path.getmtime(filename)
        filetime = localtime(filetimeUnix)
        if daysold < filetime:
            return False
    return True
def fileIsOlderThan ( filename , olderThanDays ) : olderThanDays = int ( olderThanDays ) if olderThanDays is not 0 : daysold = datetime . now ( ) - timedelta ( days = olderThanDays ) daysold = daysold . timetuple ( ) filetimeUnix = os . path . getmtime ( filename ) filetime = localtime ( filetimeUnix ) if daysold < filetime : return False return True
Return True if file 'filename' is older than 'olderThandays'
Return True if file ' filename ' is older than ' olderThandays '
"""Return True if file 'filename' is older than 'olderThandays'
    """
filename
olderThanDays