Can't change folder permissions I'm running Mountain Lion and I have a folder in ~/sites that has a red icon on the folder  and I can't open it because 'access is denied'. 

What I've tried:


Get Info > unlock with admin password, change 'everyone' privilege to 'read write' but won't change so tried 'read only' but still 'access denied'
Terminal > sudo chmod -R 0777 ~/sites/lockedfolder
Terminal > sudo chmod -R 0777 ~/sites
Terminal > sudo chmod a+rwx ~/sites/lockedfolder
Terminal > sudo chmod a+rwx ~/sites
Disk utility > repair permissions and steps 1-5 again but no luck


All users now show 'read write' access in get info window but still  and no access... 

 

What can I try next?
In addition to the Unix file permissions, there are old HFS file bits. To unlock your folder try:

Terminal > SetFile -a l ~/sites/lockedfolder

OR

Terminal > chflags nouchg ~/sites/lockedfolder

Alternatively, you could do a Get Info in the Finder, and uncheck the "Locked" checkbox from that window.