forked from Mirror/wren
File.stat().
This commit is contained in:
@ -4,4 +4,5 @@ Provides access to operating system streams and the file system.
|
||||
|
||||
* [Directory](directory.html)
|
||||
* [File](file.html)
|
||||
* [Stat](stat.html)
|
||||
* [Stdin](stdin.html)
|
||||
|
||||
50
doc/site/modules/io/stat.markdown
Normal file
50
doc/site/modules/io/stat.markdown
Normal file
@ -0,0 +1,50 @@
|
||||
^title Stat Class
|
||||
|
||||
Contains the data returned by [File.stat()][stat].
|
||||
|
||||
[stat]: file.html#file.stat(path)
|
||||
|
||||
## Methods
|
||||
|
||||
### **device**
|
||||
|
||||
The ID of the device containing the entry.
|
||||
|
||||
### **inode**
|
||||
|
||||
The [inode][] number of the entry.
|
||||
|
||||
[inode]: https://en.wikipedia.org/wiki/Inode
|
||||
|
||||
### **mode**
|
||||
|
||||
A bit field describing the entry's type and protection flags.
|
||||
|
||||
### **linkCount**
|
||||
|
||||
The number of hard links to the entry.
|
||||
|
||||
### **user**
|
||||
|
||||
Numeric user ID of the file's owner.
|
||||
|
||||
### **group**
|
||||
|
||||
Numeric group ID of the file's owner.
|
||||
|
||||
### **specialDevice**
|
||||
|
||||
The device ID for the entry, if it's a special file.
|
||||
|
||||
### **size**
|
||||
|
||||
The size of the entry in bytes.
|
||||
|
||||
### **blockSize**
|
||||
|
||||
The preferred block size in bytes for interacting with the file. It may vary
|
||||
from file to file.
|
||||
|
||||
### **blockCount**
|
||||
|
||||
The number of system blocks allocated on disk for the file.
|
||||
Reference in New Issue
Block a user