|
|
|
|
@ -56,7 +56,7 @@ object AvatarProtocol {
|
|
|
|
|
} |
|
|
|
|
val remote = ByteArray(path).also { b.get(it) }; b.position(b.position() + target) |
|
|
|
|
val body = ByteArray(payload).also { b.get(it) } |
|
|
|
|
return Reply(id, group, server, owner, command, status, size, hash(hash), fileType, cursor, version, more, |
|
|
|
|
return Reply(id, group, server, owner, command, status, size, hash(hash), fileType, cursor, version, more!=0, |
|
|
|
|
String(remote, Charsets.UTF_8), body) |
|
|
|
|
} |
|
|
|
|
data class Entry(val file: String, val mtime: Long) |
|
|
|
|
|