Forums

PermissionError: Can't access folder I used to be able to.

Hello.

I have a Django project that populates an xlsx file for download. Recently, the download stopped working because I no longer have permission to one of my subdirectories in my static folder. This also means that I can't delete or reorganize this folder.

Is there any chance I can change the permissions to the subdirectory?

That sounds like you've removed the write permission on the directory (or one of its ancestors). You can re-add the write premission with:;

chmod +w <path to the directory>