public final class FileStat extends Object
OsHelper#getFileStatus.
This data structure of the information is similar to the stat structure in the <stat.h> file.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
long |
blockCount |
Indicates the number of blocks used to store the file.
|
int |
fileMode |
Mode (permissions) of file.
|
long |
fileSize |
Indicates the file size.
|
long |
secsOfLastAccess |
Indicates the last access time, in seconds.
|
long |
secsOfLastModify |
Indicates the last modification time of the file, in seconds.
|
int |
userID |
Indicates the ID of the user to which the file belongs.
|
public final long blockCount
public final int fileMode
public final long fileSize
For a regular file, the value specifies the number of bytes occupied by the file.
For a symbolic link, the value specifies the number of bytes occupied by the linked file.
For a shared memory object or typed memory object, the value specifies the object size.
public final long secsOfLastAccess
public final long secsOfLastModify
public final int userID