ref: 2b3f312f337859198ac209d80be99a23c2e99331
parent: c3d3c395ab8387d5123f64886072b9cd97669001
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 28 16:25:56 EDT 2016
Better fix for mkpath.
--- 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 || i == p.len
+ if p[i] == ('/' : byte) && i != 0
st = mkdir(p[:i], 0o755)
if st != 0 && st != Eexist
-> st
@@ -16,6 +16,7 @@
;;
;;
;;
+ st = mkdir(p, 0o755)
-> Enone
}