mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
ops
This commit is contained in:
parent
1e909ca9eb
commit
ec9dbd86f1
1 changed files with 2 additions and 2 deletions
|
|
@ -322,7 +322,7 @@ struct SettingsViewData: View {
|
|||
}
|
||||
}
|
||||
|
||||
private func calculateDirectorySize(for url: URL) -> Int64 {
|
||||
func calculateDirectorySize(for url: URL) -> Int64 {
|
||||
let fileManager = FileManager.default
|
||||
var totalSize: Int64 = 0
|
||||
|
||||
|
|
@ -343,7 +343,7 @@ struct SettingsViewData: View {
|
|||
return totalSize
|
||||
}
|
||||
|
||||
private func formatSize(_ bytes: Int64) -> String {
|
||||
func formatSize(_ bytes: Int64) -> String {
|
||||
let formatter = ByteCountFormatter()
|
||||
formatter.allowedUnits = [.useBytes, .useKB, .useMB, .useGB]
|
||||
formatter.countStyle = .file
|
||||
|
|
|
|||
Loading…
Reference in a new issue