ref: d1432628dfd47f863ae877060921d5f8843b4fc6
parent: a5cc4f8eb810cd58f38333d2c5a64b5cd96bba89
author: Ori Bernstein <[email protected]>
date: Wed Sep 13 06:26:53 EDT 2017
Create output path before using it bio-unitwr could be executed before bio-write and tmpout/ doesn't exist yet in that case. Thanks Tobias Kortkamp.
--- a/lib/bio/test/bio-unitwr.myr
+++ b/lib/bio/test/bio-unitwr.myr
@@ -3,6 +3,8 @@
const main = {
var f
+
+ std.mkpath("tmpout")
match bio.create("tmpout/test-unitwr", bio.Wr, 0o644)
| `std.Ok bio: f = bio
| `std.Err m: std.fatal("Unable to open data file: {}\n", m)