Update Helpers
Summary: - Sources: Helpers Stats: - 1 file changed, 4 insertions(+), 4 deletions(-)
This commit is contained in:
parent
9415edf758
commit
0d9bd3735f
@ -234,7 +234,7 @@ actor FileStorageHelper {
|
|||||||
do {
|
do {
|
||||||
return try Data(contentsOf: url)
|
return try Data(contentsOf: url)
|
||||||
} catch {
|
} catch {
|
||||||
throw StorageError.fileError(error)
|
throw StorageError.fileError(error.localizedDescription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ actor FileStorageHelper {
|
|||||||
do {
|
do {
|
||||||
try FileManager.default.removeItem(at: url)
|
try FileManager.default.removeItem(at: url)
|
||||||
} catch {
|
} catch {
|
||||||
throw StorageError.fileError(error)
|
throw StorageError.fileError(error.localizedDescription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ actor FileStorageHelper {
|
|||||||
do {
|
do {
|
||||||
return try FileManager.default.contentsOfDirectory(atPath: url.path)
|
return try FileManager.default.contentsOfDirectory(atPath: url.path)
|
||||||
} catch {
|
} catch {
|
||||||
throw StorageError.fileError(error)
|
throw StorageError.fileError(error.localizedDescription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ actor FileStorageHelper {
|
|||||||
let attributes = try FileManager.default.attributesOfItem(atPath: url.path)
|
let attributes = try FileManager.default.attributesOfItem(atPath: url.path)
|
||||||
return attributes[.size] as? Int64
|
return attributes[.size] as? Int64
|
||||||
} catch {
|
} catch {
|
||||||
throw StorageError.fileError(error)
|
throw StorageError.fileError(error.localizedDescription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user