Skip to content
Advertisement

Operation not permitted – unlink on local machine

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.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement