CHGenerator/Sources/Generator/Extensions/Data+Extensions.swift
2022-09-09 11:18:32 +02:00

10 lines
170 B
Swift

import Foundation
extension Data {
func createFolderAndWrite(to url: URL) throws {
try url.ensureParentFolderExistence()
try write(to: url)
}
}