
# https://www.globalsino.com/ICs/
# Find the largest file in the folder and subfolders.

import os
  
f_list = []
theFolder = r"C:\0Python\TestImages"

theFolder = os.path.abspath(theFolder) 

for folder, subfolders, files in os.walk(theFolder):
    for file in files:
       filePath = os.path.join(folder, file)
       f_list.append(filePath)

largestFile = max(f_list,key=os.path.getsize)

print(largestFile)
