What does the /private prefix on an iOS file path indicate?

前端 未结 6 902
孤城傲影
孤城傲影 2020-12-14 15:34

I have a bug when my app runs on the iPhone but not when it runs on the simulator. I was using the length of the home directory path to extract the relative path of a file

6条回答
  •  孤城傲影
    2020-12-14 15:49

    /var is just a symlink to /private/var. So the first path is the logical path that you tried to access. The second is that same path with symlinks expanded.

提交回复
热议问题