mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 03:53:56 +02:00
13 lines
225 B
Swift
13 lines
225 B
Swift
import Foundation
|
|
|
|
protocol PrunableStorage {
|
|
func prunables() throws -> [Prunable]
|
|
}
|
|
|
|
protocol Prunable {
|
|
var url: URL { get }
|
|
func delete() throws
|
|
func accessDate() throws -> Date
|
|
func sizeBytes() throws -> Int
|
|
}
|