How will get /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000 using GetTempPath() on Maverics

qtsoftqtsoft Member ✭✭

I am using GetTempPath() to get temporary directory path.

GetTempPath() returning on High Sierra is

/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000

and GetTempPath() returning on Maverics is

/tmp.

I need /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000 also on Maverics.

Even I tried cocoa function NSTemporaryDirectory() on both High Sierra and Maverics, Its returning same path.

Tagged:

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    Why do you want to use that folder?
    This api may be not implemented on such an old mac OS version. I have seen someone opening an issue here: https://github.com/dotnet/corefx/issues/13710.
    You can also raise an issue on Mono: https://github.com/mono/mono/issues

  • qtsoftqtsoft Member ✭✭

    At /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000 location i can perform write operation without any restriction in compare to other location. I need to write file without restriction using my App. So I want to get this path at runtime.

Sign In or Register to comment.