mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 23:03:27 +01:00
App builds in xcodeproj (todo widget)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import os.log
|
||||
|
||||
extension FileManager {
|
||||
func directorySize(at directoryURL: URL) -> Int? {
|
||||
@@ -21,7 +22,7 @@ extension FileManager {
|
||||
|
||||
total += fileSize
|
||||
} catch {
|
||||
print("Failed to read file size for item: \(fileURL).", error)
|
||||
os_log("Failed to read file size for item: %@. %@", type: .error, fileURL.absoluteString, error.localizedDescription)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user