Im trying to unlink a folder on the local version of my site.
I get the error:
operation not permitted
Any ideas how I can get unlink to work on my local machine? Im using MAMP.
Advertisement
Answer
See the documentation:
unlink — Deletes a file
and
See Also: rmdir() – Removes directory
You have a directory. You need to use rmdir
, not unlink
.