I want to delete all files in a folder that are less than 200 kB in size.
Just want to be sure here, when i do a ls -la on my macbook, the file size says 171 or 143, I a
You could also use
import os files_in_dir = os.listdir(path_to_dir) for file_in_dir in files_in_dir: #do the check you need on each file