Verify_images -> cannot set attribute

I have a number of jpg files in a folder. When I tested verify_images on it, I received the message, for each file, ‘cannot set attribute’. Then, the function deleted the files.

Do I need to change the permission on the directory? Something else? Any insights would be appreciated.

I’m using Paperspace’s Gradient, if that makes any difference.