|
@@ -14,8 +14,8 @@ import Cocoa
|
|
|
var outputFilePath: String = ""
|
|
|
lazy var sizeString: String = {
|
|
|
let attributes = try? FileManager.default.attributesOfItem(atPath: self.filePath)
|
|
|
- let fileSize = attributes?[FileAttributeKey.size] as? Float ?? 0
|
|
|
- let _sizeString = self.fileSizeString(fSize: fileSize)
|
|
|
+ let fileSize: Int = attributes?[FileAttributeKey.size] as! Int
|
|
|
+ let _sizeString = self.fileSizeString(fSize: Float(fileSize))
|
|
|
return _sizeString
|
|
|
}()
|
|
|
var fileType: KMBatchOperateFileType?
|