|
@@ -65,7 +65,7 @@ class KMBatchProcessingTableViewModel: NSObject {
|
|
|
let fileManager = FileManager.default
|
|
|
do {
|
|
|
let attr = try fileManager.attributesOfItem(atPath: filePath)
|
|
|
- let size: Float = (attr[FileAttributeKey.size] as? Float ?? 0) / 1024.0
|
|
|
+ let size: Float = Float((attr[FileAttributeKey.size] as? Int ?? 0)) / 1024.0
|
|
|
let image = NSImage.init(contentsOfFile: filePath)
|
|
|
|
|
|
model.name = url.lastPathComponent
|