os.listdir is returning filenames WITHOUT their extensions. How do I get it to return the extensions too?
I executed os.listdir(mydirectory) and it returned a list of the files in the directory WITHOUT their extensions. I was expecting it to return the full filename INCLUDING the the tile extensions.
New contributor
Bill Robinson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.