chickadee » 9p » file-stat

file-stat connection pathprocedure

Returns a 9-element vector which contains information about the file indicated by path on the connection. It has the following contents:

  • The QID of the file (The qid can be queried with the QID procedures from 9p-lolevel.
  • The permission mode (See the permission bits section for a description)
  • The access time of the file. This is an integer which indicates the server-time when the file was last accessed. There is no way to determine what the server's time is using the 9p protocol, so you can only use this for comparing timestamps of files on the same server unless you use an additional protocol to find out about the server's current time and zone.
  • The modification time of the file. This is an integer which indicates the server-time when the file was last modified.
  • The file's size in bytes.
  • The filename of the file.
  • The user who owns the file (a string, not a uid, because Plan9 has only user and group names, not numerical ids).
  • The group who owns the file (a string)
  • The user who last modified the file (a string)