helper/helper.py
def file_length(filename):
    """
    Get byte length of a file.
    :param filename: Path to file
    :return: Byte length of file
    """
    try:
        f = open(filename)
        ret = int(os.fstat(f.fileno()).st_size)
    except FileNotFoundError:
        ret = -1
    return ret

    Get byte length of a file.
    :param filename: Path to file
    :return: Byte length of file
    
Get byte length of a file.
Get byte length of a file .
def file_length(filename):
    try:
        f = open(filename)
        ret = int(os.fstat(f.fileno()).st_size)
    except FileNotFoundError:
        ret = -1
    return ret
def file_length ( filename ) : try : f = open ( filename ) ret = int ( os . fstat ( f . fileno ( ) ) . st_size ) except FileNotFoundError : ret = - 1 return ret
Get byte length of a file.
Get byte length of a file .
"""
    Get byte length of a file.
    :param filename: Path to file
    :return: Byte length of file
    """
Byte length of file
Byte length of file
filename
Path to file
Path to file