开发者

Is it possible to programmatically create a symbolic link on an iPhone?

开发者 https://www.devze.com 2023-03-20 01:20 出处:网络
I need to create a symbolic link on iPhone devices programatically in order to avoid a lot 开发者_开发技巧of slow file copying. Is this possible to do and if so, how?It\'s technically possible, via th

I need to create a symbolic link on iPhone devices programatically in order to avoid a lot 开发者_开发技巧of slow file copying. Is this possible to do and if so, how?


It's technically possible, via the NSFileManager class. Grab the singleton instance and then use any of the calls listed under 'Linking an Item' or 'Symbolic-Link Operations' (createSymbolicLinkAtPath:withDestinationPath:error: looks like a good candidate).

Using a link rather than a direct file was a method briefly used by developers to update their Default.png programmatically, but that specific use has been outlawed by Apple. Besides that I'm afraid I have to plead ignorance on any SDK usage restrictions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号