mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -20,7 +20,7 @@ extension FileManager {
|
||||
}
|
||||
return isDirectory.boolValue
|
||||
}
|
||||
|
||||
|
||||
func createDirectoryIfNeeded(at url: URL, withIntermediateDirectories: Bool = true) throws {
|
||||
guard !directoryExists(at: url) else {
|
||||
return
|
||||
@@ -36,7 +36,7 @@ extension FileManager {
|
||||
|
||||
return newURL
|
||||
}
|
||||
|
||||
|
||||
@discardableResult
|
||||
func writeDataToTemporaryDirectory(data: Data, fileName: String, withinAppGroupContainer: Bool = false) throws -> URL {
|
||||
let baseURL: URL = withinAppGroupContainer ? .appGroupTemporaryDirectory : .temporaryDirectory
|
||||
@@ -59,7 +59,7 @@ extension FileManager {
|
||||
|
||||
return size
|
||||
}
|
||||
|
||||
|
||||
func sizeForDirectory(at url: URL) throws -> UInt {
|
||||
guard let enumerator = enumerator(at: url, includingPropertiesForKeys: [.fileSizeKey, .isDirectoryKey]) else {
|
||||
throw FileManagerError.invalidFileSize
|
||||
|
||||
Reference in New Issue
Block a user