Maybe a little more information might be useful.
What are you trying to do?
Where are you trying to create a temp directory?
How are you trying to create it?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP