📜  打印文档目录路径swift代码示例

📅  最后修改于: 2022-03-11 15:00:58.504000             🧑  作者: Mango

代码示例1
func getDocumentsDirectory() -> URL {
    let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    let documentsDirectory = paths[0]
    return documentsDirectory
}