hare

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

commit 818f50967ff1c80cfe6a099c83afbe1ae83a465b
parent b063a60913da2a0935abea71896edc81373eca95
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Sun,  6 Jun 2021 18:03:33 +0000

os::iter: rename from os::iterdir

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

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

diff --git a/os/fs.ha b/os/fs.ha @@ -9,7 +9,7 @@ export let cwd: *fs::fs = null: *fs::fs; export fn remove(path: str) (void | fs::error) = fs::remove(cwd, path); // Creates an [[fs::iterator]] for a given directory to read its contents. -export fn iterdir(path: str) (*fs::iterator | fs::error) = fs::iter(cwd, path); +export fn iter(path: str) (*fs::iterator | fs::error) = fs::iter(cwd, path); // Reads all entries from a directory. The caller must free the return value // with [[fs::dirents_free]].