Name
fstat
Synopsis
array fstat(resource handle)Returns an associative array of information about the file
referenced by handle. The following values
(given here with their numeric and key indices) are included in the
array:
| The device on which the file resides |
| The file’s inode |
| The mode with which the file was opened |
| The number of links to this file |
| The user ID of the file’s owner |
| The group ID of the file’s owner |
| The device type (if the file is on an inode device) |
| The file’s size (in bytes) |
| The time of last access (in Unix timestamp format) |
| The time of last modification (in Unix timestamp format) |
| The time the file was created (in Unix timestamp format) |
| The blocksize (in bytes) for the filesystem |
| The number of blocks allocated to the file |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access