Index: dm/DMJsonWriter.cpp |
diff --git a/dm/DMJsonWriter.cpp b/dm/DMJsonWriter.cpp |
index 56c1301df166ad1a70c49f54dec7b4c74e51db38..8f1fa7ed3cff67e7b2084d0f5e41014adc647d11 100644 |
--- a/dm/DMJsonWriter.cpp |
+++ b/dm/DMJsonWriter.cpp |
@@ -75,6 +75,7 @@ void JsonWriter::DumpJson() { |
} |
SkString path = SkOSPath::Join(FLAGS_writePath[0], "dm.json"); |
+ sk_mkdir(FLAGS_writePath[0]); |
SkFILEWStream stream(path.c_str()); |
stream.writeText(Json::StyledWriter().write(root).c_str()); |
stream.flush(); |