LocalData/Sources/LocalData/Models/FileDirectory.swift
Matt Bruce a633fb0bf3 Update Models
Summary:
- Sources: update Models

Stats:
- 1 file changed, 1 insertion(+), 1 deletion(-)
2026-01-18 13:43:07 -06:00

16 lines
360 B
Swift

import Foundation
public enum FileDirectory: Sendable, Hashable {
case documents, caches, custom(URL)
public func url() -> URL {
switch self {
case .documents:
return URL.documentsDirectory
case .caches:
return URL.cachesDirectory
case .custom(let url):
return url
}
}
}