for Get(DesktopPath) , its working on MAC .It is also working for Windows Get(TemporaryPath) .
And doesnot even shows an error code. (but on Temporarry location , the file is absent)
I ran into this. See if resetting your permissions helps. Disk Utility, First Aid. You can verify before you try to repair.
Thanks for the reply.
I have sorted this problem .It was due to access restrictions.