Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[NSFileManager createDirectoryAtPath:attributes:]は、減価償却されていることを警告します。
代替手段は何ですか?それとも、これを行うためのより良い方法はありますか?
ありがとう
トム
使用するcreateDirectoryAtPath:withIntermediateDirectories:attributes:error:
createDirectoryAtPath:withIntermediateDirectories:attributes:error:
PS
createIntermediates YESの場合、メソッドは必要な中間ディレクトリも作成します。NOの場合、作成するディレクトリの親が存在しないと、メソッドは失敗します。さらに、このパラメーターにNOを渡した場合、この呼び出しが行われた時点でディレクトリーが存在していてはなりません。