[英]my app creates the /var/mobile/ folder but I can't find it in Finder
My Xcode app creates a document and resource path. 我的Xcode应用程序创建一个文档和资源路径。 Please see the console output below when I print out these two path variables: 当我打印出这两个路径变量时,请参见下面的控制台输出:
However, when I try to find this folder in Finder, I'm told the folder doesn't exist. 但是,当我尝试在Finder中查找此文件夹时,会提示该文件夹不存在。
Why?! 为什么?!
The code for getting the two paths are below: 获取两条路径的代码如下:
// Get the path to the resource directory.
NSString* resourcePath= [[NSBundle mainBundle] resourcePath];
std::string *resourcePathCPP = new std::string([resourcePath UTF8String]);
// Get the path to the Documents direcotory
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* documentsPath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
std::string *documentsPathCPP = new std::string([documentsPath UTF8String]);
Thanks! 谢谢!
That should be on your iPhone/iPad's file system, not on your Mac. 那应该在您的iPhone / iPad的文件系统上,而不是在您的Mac上。 Otherwise Go to folder ... Is the right way to check a directory. 否则, 转到文件夹...是检查目录的正确方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.