Getting error, I put the dir name like G: or G:/ and it says unexpected )
Edit : Copy paste from original post to avoid confusions (still says "do unexpected" for me)
MAC (Tested, working)
Load terminal
Type the following commend, where SDCARD is the name of your Micro SD card:
sudo chflags...