From 7fd501f9093ff12fae5652bef893d23a15196e7a Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 17 Apr 2023 00:19:57 +0200 Subject: [PATCH] Implemented the "bitBucket" static constant in the URL+Devices public extension. --- .../Persistence/Extensions/URL+Devices.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Sources/Persistence/Extensions/URL+Devices.swift diff --git a/Sources/Persistence/Extensions/URL+Devices.swift b/Sources/Persistence/Extensions/URL+Devices.swift new file mode 100644 index 0000000..9297c23 --- /dev/null +++ b/Sources/Persistence/Extensions/URL+Devices.swift @@ -0,0 +1,18 @@ +// +// URL+Devices.swift +// Persistence +// +// Created by Javier Cicchelli on 17/04/2023. +// Copyright © 2023 Röck+Cöde. All rights reserved. +// + +import Foundation + +public extension URL { + + // MARK: Properties + + /// URL to a virtual device in which any data written vanishes or disappear. + static let bitBucket = URL(fileURLWithPath: "/dev/null") + +}