Python Forum

Full Version: Image processing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Have to find largest file in a partition of an diskimage tried to make a definition for it but doesn't seem to work
def LF_file():
    largest_file = {'file': '', 'size': 0}
    if size => largest_file['size']:
        largest_file['file'] = file_obj
        largest_file['size'] = size
    print("The largest file is: %s" % largest_file['file'].info.name.name)
    return