mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
os: improve documentation (#24790)
This commit is contained in:
parent
1573d4c99b
commit
80fed7add5
9 changed files with 108 additions and 78 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue