Use of variable in external storage not working

Hi All,

I wanted to create folder based on user name in the external storage,as suggested below


But i couldn’t able to achieve it, am getting the below error, can someone help me here, its been 2 days and i didn’t get any solution…!

without $user variable there is no error

Please let me know what am missing here

Thanks in advance