do {
try NSFileManager().createDirectoryAtPath("\(NSHomeDirectory())/Documents/Direct", withIntermediateDirectories: true, attributes: nil)
}catch let err {
debugPrint(err)
}
do {
try NSFileManager().createDirectoryAtPath("\(NSHomeDirectory())/Documents/Direct", withIntermediateDirectories: true, attributes: nil)
}catch let err {
debugPrint(err)
}
转载于:https://www.cnblogs.com/egai/p/5090279.html