diff options
author | Edoardo La Greca | 2025-08-06 21:43:53 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-06 21:44:36 +0200 |
commit | 449483f7743006cc35151f7d9877e6c3541585e4 (patch) | |
tree | ec153ffe190b84badf1347a83f97a6b2227c5557 /src/main/kotlin | |
parent | 59e3a9e23cb2e81cb1a5ffd044b57538b3071e6c (diff) |
add documentation and arguments to walk
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/ProtocolTranslator.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt index e938224..82c530a 100644 --- a/src/main/kotlin/ProtocolTranslator.kt +++ b/src/main/kotlin/ProtocolTranslator.kt @@ -43,8 +43,14 @@ interface ProtocolTranslator { /** * Descend a directory hierarchy. + * + * @param fid The existing FID. It must represent a directory. + * @param newfid The proposed FID, which is going to be associated with the result of walking the hierarchy. It must + * be not in use, unless it is the same as [fid]. + * @param wname The successive path name elements which describe the file to walk to. + * @return a possible error. */ - fun walk(path: String) + fun walk(fid: UInt, newfid: UInt, wname: List<String>): String? /** * Prepare an FID for I/O on an existing file. |