ref: c3d3c395ab8387d5123f64886072b9cd97669001
parent: 4fa2835b96c0719cbde3455332390b51b0f7007f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 28 16:09:49 EDT 2016
Create all directories with mkdirs. We would skip directories that didn't end with a '/'.
--- a/lib/std/mkpath.myr
+++ b/lib/std/mkpath.myr
@@ -9,7 +9,7 @@
var st
for var i = 0; i < p.len; i++
- if p[i] == ('/' : byte) && i != 0
+ if p[i] == ('/' : byte) && i != 0 || i == p.len
st = mkdir(p[:i], 0o755)
if st != 0 && st != Eexist
-> st