diff options
Diffstat (limited to 'lib/std/mkpath.myr')
-rw-r--r-- | lib/std/mkpath.myr | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/mkpath.myr b/lib/std/mkpath.myr index b7e8e24..75c1b9c 100644 --- a/lib/std/mkpath.myr +++ b/lib/std/mkpath.myr @@ -7,9 +7,8 @@ pkg std = const mkpath = {p var st - var i - for i = 0; i < p.len; i++ + for var i = 0; i < p.len; i++ if p[i] == '/' castto(byte) && i != 0 st = mkdir(p[:i], 0o777) if st != 0 && (st castto(errno)) != Eexist |