Skip to content

Commit

Permalink
Create results dir (#122)
Browse files Browse the repository at this point in the history
* Try uuid name

* Add log

* Create directory
  • Loading branch information
noahsmartin authored Jun 4, 2024
1 parent 0b29a60 commit 3274d8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SnapshottingSwift/Snapshots.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Snapshots {
}

let fileName = Self.fileName(typeName: typeName, previewId: id)
try FileManager.default.createDirectory(at: Self.resultsDir, withIntermediateDirectories: true)
let file = Self.resultsDir.appendingPathComponent(fileName, isDirectory: false)
do {
let image = try imageResult.get()
Expand Down

0 comments on commit 3274d8d

Please sign in to comment.