NotADirectoryError Python error
Go to solution
Solved by fizzlesticks,
.ds_store is a file, not a folder. You're calling the line
img_list = os.listdir(img_fold_A)
for everything in the folder, which of course causes an error when you call it with a file.
You could either delete the .ds_store file at the start or add a check to skip files.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now