开发者

createDirectoryAtPath:attributes: alternative

[NSFileManager createDirectoryAtPath:attributes:] gives me a warning that it is depreciated.

What is the alternative? Or is there a better way of doi开发者_运维问答ng this?

Thanks

Tom


Use createDirectoryAtPath:withIntermediateDirectories:attributes:error:

P.S.

createIntermediates If YES, then the method will also create any necessary intermediate directories; if NO, then the method fails if any parent of the directory to be created does not exist. In addition, if you pass NO for this parameter, the directory must not exist at the time this call is made.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜