some folders and files are special and starting with the point, e.g. '.git'
i use the following script to ignore point-starting files and folder:
import os
for file in os.listdir():
# split into base name and extension
name, ext = os.path.splitext(file)
if name[0]!=".":
print("%20s %5s" %(name,ext))