hare

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

commit 3db09e111c69a8af9da8f8de4ef9d543774c0303
parent 78fb33bbef7478c0579f3ecdb8c96bec67846e66
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu,  5 May 2022 17:34:36 -0400

hare::module: ignore unrecognized filetypes

In scan, rather than aborting when an unrecognized filetype is
encountered (FIFO, socket, block device, etc.), just continue iterating
through the directory.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/module/scan.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -169,7 +169,7 @@ fn scan_directory( append(dirs, strings::dup(ent.name)); case fs::mode::REG => append(files, strings::dup(ent.name)); - case => abort(); + case => void; }; };