獲取沙盒中文件的大小

廢話很少說,直接上代碼:code let filePath = "The file path" do { let dic: [FileAttributeKey: Any] = try FileManager.default.attributesOfItem(atPath: filePath) let bytes = dic[FileAttributeKey.size] pr
相關文章
相關標籤/搜索