I've got a bunch of files and a few folders. I'm trying to append the zips to a list so I can extract those files in other part of the code. It never finds the zips.
for file in os.listdir(path):
if file.split(".") == 'zip':
It's possible your files have more than one period in them. Try using
reg_zips =  for file in os.listdir(path): if file.endswith('zip'): reg_zips.append(file)
Another good idea (thanks, Jean-François Fabre!) is to use
os.path.splitext, which handles the extension quite nicely:
if os.path.splitext(file)[-1] == '.zip': ...
Am even better solution, I recommend with the
import glob reg_zips = glob.glob('*.zip')