Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

428 B
Raw Blame
import Foundation
@testable import PeelPrivileged
import Testing

struct DriveFlushTests {
    @Test func flushesAFileThisMacWrote() throws {
        let directory = try TemporaryDirectory()
        let file = try directory.file("written")

        #expect(DriveFlush.file(at: file.path(percentEncoded: false)))
        #expect(!DriveFlush.file(at: directory.url.appending(path: "missing").path(percentEncoded: false)))
    }
}