I am trying to get the list of .ini files from a given directory. it works fine except it is missing the hidden directory.
Below is the piece of code I am using, I need to include the hidden directory also when I am doing this.
for root,dirs,files in os.walk(path):
for name in files:
if name.endswith(".ini"):
file_list.append(os.path.join (root,name))