📅  最后修改于: 2022-03-11 15:00:58.504000             🧑  作者: Mango
func getDocumentsDirectory() -> URL {
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
let documentsDirectory = paths[0]
return documentsDirectory
}