commit e8a3a87932dfbdf3a4c3235d1d5cfe3c000fae06
parent 9a26aad3f036db3c1d3e8095e03ec136fa48428e
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 5 May 2022 17:35:34 -0400
os: update stat docs to match fs::stat
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/os/fs.ha b/os/fs.ha
@@ -33,7 +33,8 @@ export fn finish(iter: *fs::iterator) void = fs::finish(iter);
// with [[fs::dirents_free]].
export fn readdir(path: str) ([]fs::dirent | fs::error) = fs::readdir(cwd, path);
-// Returns file information for a given path.
+// Returns file information for a given path. If the target is a symlink,
+// information is returned about the link, not its target.
export fn stat(path: str) (fs::filestat | fs::error) = fs::stat(cwd, path);
// Creates a directory.