hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 1fe756964bc0b85d1f7ca29d6aa719dac0c59527
parent d41067dd9d496366c054d76eca7f8401fc98b0e8
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date:   Wed, 14 Apr 2021 13:01:43 +0200

fs::rmdirall: mask irrelevant mode flags

Diffstat:
Mfs/fs.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs.ha b/fs/fs.ha @@ -117,7 +117,7 @@ export fn rmdirall(fs: *fs, path: str) (void | error) = { }; let p = path::join(path, ent.name); defer free(p); - switch (ent.ftype) { + switch (ent.ftype & mode::DIR) { mode::DIR => rmdirall(fs, p)?, * => remove(fs, p)?, };