When I use iterdir () etc. in Python, I get an error like the title. It comes out when a function cannot be executed due to a hidden file called .DS_Store, which is unique to the Mac. The workaround is to just delete the .DS_Store.
.DS_Store is a file for the Finder to record folder settings. Reference site
You can use the viewfinder or the command line to erase it.
On the command line Go to the folder that contains the disturbing .DS_Store
find . -name ".DS_Store" -delete
Erase with. Reference site
It's finished.
Recommended Posts