Simplify images, tag overview
This commit is contained in:
@ -28,6 +28,10 @@ struct SecurityBookmark {
|
||||
|
||||
// MARK: Write
|
||||
|
||||
func fullPath(to relativePath: String) -> URL {
|
||||
url.appending(path: relativePath, directoryHint: .notDirectory)
|
||||
}
|
||||
|
||||
/**
|
||||
Write the data of an encodable value to a relative path in the content folder,
|
||||
or delete the file if nil is passed.
|
||||
@ -68,7 +72,7 @@ struct SecurityBookmark {
|
||||
createParentFolder: Bool = true,
|
||||
ifFileExists overwrite: OverwriteBehaviour = .writeIfChanged) -> Bool {
|
||||
perform { url in
|
||||
let file = url.appending(path: relativePath, directoryHint: .notDirectory)
|
||||
let file = fullPath(to: relativePath)
|
||||
|
||||
if exists(file) {
|
||||
switch overwrite {
|
||||
|
Reference in New Issue
Block a user