summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-10 15:30:35 +0200
committerEdoardo La Greca2025-08-10 15:37:11 +0200
commitbda07601a8b2dd9f016a3e5ac4a6e0ec7fa9a23c (patch)
tree533050726d1d45ed70b3e391ffceadb682660004
parent4e1e83f3b9ab586ad87c3d9e2016af5bf2f0035b (diff)
add Stat
-rw-r--r--src/main/kotlin/Stat.kt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/kotlin/Stat.kt b/src/main/kotlin/Stat.kt
new file mode 100644
index 0000000..53f913d
--- /dev/null
+++ b/src/main/kotlin/Stat.kt
@@ -0,0 +1,26 @@
+/**
+ * File attributes. The `type` and `dev` attributes are ignored since they are for kernel use only.
+ *
+ * @param fid The FID sent the T-stat message.
+ * @param qid The QID of the file.
+ * @param mode Permissions and flags.
+ * @param atime Last acces time.
+ * @param mtime Last modification time.
+ * @param length The length of the file in bytes.
+ * @param name The file name, which is `/` if the file is the root directory.
+ * @param uid The owner's name.
+ * @param gid The group's name.
+ * @param muid The name of the user who last modified the file.
+ */
+data class Stat(
+ val fid: UInt,
+ val qid: QID,
+ val mode: FileMode,
+ val atime: UInt,
+ val mtime: UInt,
+ val length: ULong,
+ val name: String,
+ val uid: String,
+ val gid: String,
+ val muid: String
+) \ No newline at end of file