X-Git-Url: https://git.r.bdr.sh/rbdr/captura/blobdiff_plain/f5d16c1c8c259966338b23afd407d142f72784aa..refs/heads/rbdr-multimonitor:/Captura/Data/CapturaFile.swift?ds=inline 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) } }