kitir/_libs/byte_utils.py
def check_file_size(file_path, min_file_size=0):
    """
    Check file size is greater than min_file_size. Default is larger than 0 bytes.
    :param file_path:
    :param min_file_size:
    :return:
    """
    try:
        size = os.path.getsize(file_path)
    except Exception as exc:
        log.error('Exception retrieving file size: file_path={} exc={}'.format(file_path, exc))
    else:
        log.trace('check file size: file={} min_file_size={} actual_size={}'.format(file_path, min_file_size, size))
        return bool(size > min_file_size)

    Check file size is greater than min_file_size. Default is larger than 0 bytes.
    :param file_path:
    :param min_file_size:
    :return:
    
Check file size is greater than min_file_size. Default is larger than 0 bytes.
Check file size is greater than min_file_size . Default is larger than 0 bytes .
def check_file_size(file_path, min_file_size=0):
    try:
        size = os.path.getsize(file_path)
    except Exception as exc:
        log.error('Exception retrieving file size: file_path={} exc={}'.format(file_path, exc))
    else:
        log.trace('check file size: file={} min_file_size={} actual_size={}'.format(file_path, min_file_size, size))
        return bool(size > min_file_size)
def check_file_size ( file_path , min_file_size = 0 ) : try : size = os . path . getsize ( file_path ) except Exception as exc : log . error ( 'Exception retrieving file size: file_path={} exc={}' . format ( file_path , exc ) ) else : log . trace ( 'check file size: file={} min_file_size={} actual_size={}' . format ( file_path , min_file_size , size ) ) return bool ( size > min_file_size )
Check file size is greater than min_file_size.
Check file size is greater than min_file_size .
"""
    Check file size is greater than min_file_size. Default is larger than 0 bytes.
    :param file_path:
    :param min_file_size:
    :return:
    """
None
file_path
None
min_file_size
None