]> git.r.bdr.sh - rbdr/captura/blobdiff - Captura/Data/CapturaFile.swift
Add new icons
[rbdr/captura] / Captura / Data / CapturaFile.swift
index da1f2fb3fced4baa86a65eea36b8bc5951c1e527..4af71dcebcaf8f531fcb020d8ee7175b384f1c48 100644 (file)
@@ -27,5 +27,8 @@ struct CapturaFile {
     
     self.name = "Captura \(dateString)"
     self.baseDirectory = FileManager.default.urls(for: .picturesDirectory, in: .userDomainMask).first!
     
     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)
   }
 }
   }
 }