diff options
Diffstat (limited to 'src/main/kotlin/Connection.kt')
-rw-r--r-- | src/main/kotlin/Connection.kt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt index c3d3684..ff12656 100644 --- a/src/main/kotlin/Connection.kt +++ b/src/main/kotlin/Connection.kt @@ -302,7 +302,18 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator { return Stat(fid, rawStat) } - override fun wstat(path: String) { - TODO("Not yet implemented") + override fun wstat(fid: UInt, stat: Stat) { + val omsg = OutMessage(NinePMessageType.TWSTAT, this.tagGen.generate(), listOf("fid", "stat"), + mapOf( + "fid" to Pair(BigInteger(fid.toString()), 4u) + ), + emptyMap(), + mapOf( + "stat" to stat.toRaw() + ), + this.maxSize + ) + omsg.write(this.tl) + val imsg = checkedInMessage(omsg.tag) } }
\ No newline at end of file |