Skip to content

Commit 3274d8d

Browse files
authored
Create results dir (#122)
* Try uuid name * Add log * Create directory
1 parent 0b29a60 commit 3274d8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SnapshottingSwift/Snapshots.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class Snapshots {
7575
}
7676

7777
let fileName = Self.fileName(typeName: typeName, previewId: id)
78+
try FileManager.default.createDirectory(at: Self.resultsDir, withIntermediateDirectories: true)
7879
let file = Self.resultsDir.appendingPathComponent(fileName, isDirectory: false)
7980
do {
8081
let image = try imageResult.get()

0 commit comments

Comments
 (0)