获取NSFileWrapper的路径 [英] Get path for NSFileWrapper

查看:212
本文介绍了获取NSFileWrapper的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定一个NSFileWrapper对象(对于文件或目录),有没有办法获得磁盘上实际文件位置的完整路径?

Given an NSFileWrapper object (for a file or directory), is there any way to get the full path for the location of the actual file on the disk?

[fileWrapper filename] 只返回文件名,而不是路径,所以它不是我要找的。

[fileWrapper filename] only returns the file name, not the path, so it isn't what I'm looking for.

推荐答案

不,没有办法从 NSFileWrapper 获取完整路径。

No, there's no way to get the full path from NSFileWrapper.

这篇关于获取NSFileWrapper的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆