Compare commits

..

2 Commits

Author SHA1 Message Date
Christoph Hagen
3d361845ab Fix image logging bug 2022-12-14 09:51:46 +01:00
Christoph Hagen
dbb088fa82 Fix content path processing 2022-12-10 22:40:35 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ extension URL {
absoluteString.components(separatedBy: "/").forEach { part in absoluteString.components(separatedBy: "/").forEach { part in
if part == ".." { if part == ".." {
if !components.isEmpty { if !components.isEmpty {
_ = components.dropLast() _ = components.popLast()
} else { } else {
components.append("..") components.append("..")
} }

View File

@ -338,7 +338,7 @@ final class GenerationResultsHandler {
} }
private func markImageAsMissing(path: String, source: String) { private func markImageAsMissing(path: String, source: String) {
images.missing[source] = path images.missing[path] = source
} }
private func requireImage(at destination: String, generatedFrom source: String, requiredBy path: String, quality: Float, width: Int, height: Int?, alwaysGenerate: Bool) -> NSSize { private func requireImage(at destination: String, generatedFrom source: String, requiredBy path: String, quality: Float, width: Int, height: Int?, alwaysGenerate: Bool) -> NSSize {