-
Notifications
You must be signed in to change notification settings - Fork 7
Path
vimfung edited this page Dec 17, 2018
·
6 revisions
该类型提供了一系列用于获取各种路径以及路径判断的功能
Path
> Object
iOS
Android
Unity3D
获取应用的安装目录
function Path:app();
应用的安装目录
获取应用沙箱的根目录
function Path:home()
应用沙箱的根目录
获取应用沙箱的文档目录
function Path:docs()
应用沙箱的文档目录
获取应用沙箱的缓存目录
function Path:caches()
应用沙箱的缓存目录
获取应用沙箱的临时目录
function Path:tmp()
应用沙箱的临时目录
判断指定路径是否存在
function Path:exists(path)
- path 要判断的路径,为绝对路径,不能为
nil
如果路径存在返回True
,否则返回False