How to determine a volume supports resolving bookmarks to renamed or moved files?

妖精的绣舞 提交于 2019-12-10 19:34:27

问题


- bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:

Documentation states:

This method returns bookmark data that can later be resolved into a URL object for a file even if the user moves or renames it (if the volume format on which the file resides supports doing so).

My question is, how can I query if a volume supports this feature?

From trial and error it seems only (internal?) hard drives support it, but I am looking for some kind of sure test like a NSURLVolumeSupports???Key.

NSURLVolumeSupportsPersistentIDsKey looks like a good candidate, but I failed to find any docs or google-info about it. Any hints?

来源:https://stackoverflow.com/questions/33464056/how-to-determine-a-volume-supports-resolving-bookmarks-to-renamed-or-moved-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!