X-Git-Url: https://git.r.bdr.sh/rbdr/captura/blobdiff_plain/f5d16c1c8c259966338b23afd407d142f72784aa..082b61f32344872d4360ad4c71cf62c99de62ae8:/Captura/Data/CapturaFile.swift diff --git a/Captura/Data/CapturaFile.swift b/Captura/Data/CapturaFile.swift index da1f2fb..4af71dc 100644 --- a/Captura/Data/CapturaFile.swift +++ b/Captura/Data/CapturaFile.swift @@ -27,5 +27,8 @@ struct CapturaFile { self.name = "Captura \(dateString)" self.baseDirectory = FileManager.default.urls(for: .picturesDirectory, in: .userDomainMask).first! + try? FileManager.default.createDirectory(at: self.baseDirectory.appendingPathComponent(appDirectory), + withIntermediateDirectories: true, + attributes: nil) } }