From 4e1e83f3b9ab586ad87c3d9e2016af5bf2f0035b Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Sun, 10 Aug 2025 15:23:56 +0200 Subject: implement remove --- src/main/kotlin/ProtocolTranslator.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/ProtocolTranslator.kt') diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt index 6747e98..5148120 100644 --- a/src/main/kotlin/ProtocolTranslator.kt +++ b/src/main/kotlin/ProtocolTranslator.kt @@ -138,8 +138,12 @@ interface ProtocolTranslator { /** * Remove a file from a server. + * + * @param fid The FID of the file to remove. + * @throws except.InvalidMessageException if the received message is invalid. + * @throws except.RErrorException if the received message is an R-error message. */ - fun remove(path: String) + fun remove(fid: UInt) /** * Inquire file attributes. -- cgit v1.2.3