X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/c5d9af5aa4d9fb20316be45ab1b775bcf61bcad5..d2810ae9038b057e8f18e8b495a57d8f96ae5be6:/hotline/file_transfer.go diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go index c0c2f87..65ef0b0 100644 --- a/hotline/file_transfer.go +++ b/hotline/file_transfer.go @@ -23,6 +23,7 @@ type FileTransfer struct { FolderItemCount []byte BytesSent int clientID uint16 + fileResumeData *FileResumeData } func (ft *FileTransfer) String() string { @@ -32,6 +33,10 @@ func (ft *FileTransfer) String() string { return out } +func (ft *FileTransfer) ItemCount() int { + return int(binary.BigEndian.Uint16(ft.FolderItemCount)) +} + // 00 28 // DataSize // 00 00 // IsFolder // 00 02 // PathItemCount