Skip to content

Commit deeff5c

Browse files
committed
added debug info
1 parent b9eb914 commit deeff5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ApprovalTests.Swift/Writers/ApprovalTextWriter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public struct ApprovalTextWriter: ApprovalWriter {
2020
public func writeReceivedFile(_ received: String) {
2121
let fileURL = URL(fileURLWithPath: received)
2222
do {
23+
let parent = fileURL.deletingLastPathComponent()
24+
print("Directory exists? \(FileManager.default.fileExists(atPath: parent.path))")
2325
try text.write(toFile: fileURL.path, atomically: true, encoding: .utf8)
2426
} catch {
2527
print("Error in \(#function) for received \"\(received)\": \(error)")

0 commit comments

Comments
 (0)