📅  最后修改于: 2022-03-11 15:00:59.304000             🧑  作者: Mango
do {
let resources = try url.resourceValues(forKeys:[.fileSizeKey])
let fileSize = resources.fileSize!
print ("\(fileSize)")
} catch {
print("Error: \(error)")
}