os: improve documentation (#24790)

This commit is contained in:
Laurent Cheylus 2025-06-25 21:29:47 +02:00 committed by GitHub
parent 1573d4c99b
commit 80fed7add5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 108 additions and 78 deletions

View file

@ -59,8 +59,8 @@ pub fn (m FileMode) bitmask() u32 {
}
// inode returns the metadata of the file/inode, containing inode type, permission information, size and modification time.
// it supports windows for regular files, but it doesn't matter if you use owner, group or others when checking permissions on windows.
// if a symlink is targeted, it returns info on the link, not the target
// It supports Windows for regular files, but it doesn't matter if you use owner, group or others when checking permissions on Windows.
// if a symlink is targeted, it returns info on the link, not the target.
pub fn inode(path string) FileInfo {
attr := lstat(path) or { Stat{} }
fm := attr.get_mode()