我是否必须自己创建/ Users / name / Library / Scripts / Applications / app文件夹?它似乎不是自动创建的。或者是否有创建它的命令?
答案 0 :(得分:1)
是
NSError *error;
[[NSFileManager defaultManager] createDirectoryAtPath:[@"~/Library/Scripts/Applications/app" stringByExpandingTildeInPath] withIntermediateDirectories:YES attributes:nil error:&error];