We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9eb914 commit deeff5cCopy full SHA for deeff5c
ApprovalTests.Swift/Writers/ApprovalTextWriter.swift
@@ -20,6 +20,8 @@ public struct ApprovalTextWriter: ApprovalWriter {
20
public func writeReceivedFile(_ received: String) {
21
let fileURL = URL(fileURLWithPath: received)
22
do {
23
+ let parent = fileURL.deletingLastPathComponent()
24
+ print("Directory exists? \(FileManager.default.fileExists(atPath: parent.path))")
25
try text.write(toFile: fileURL.path, atomically: true, encoding: .utf8)
26
} catch {
27
print("Error in \(#function) for received \"\(received)\": \(error)")
0 commit comments