I would like to iterate through files in a specified directory which are bigger then 100 kb and end with a *.zip.
How can this be done in a efficient way?
Will go through any zip files but not necessarily files which are bigger than 100kb;
for i in os.listdir(os.getcwd()):
if i.endswith(".zip"):
##print i
continue
else:
continue
How can I incoprporate it in the if conditions? ie (if i.endswith(".zip") and >100kb
). How could I used this file as an argument with myOtherPythonScript.py
?