diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 21:31:42 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 21:40:38 -0700 |
| commit | dcd23d5355badf66c34ffd63d3c44734e87ebf17 (patch) | |
| tree | eac7ec135e1e06ac8f4e9cb6aa0e04d392d1d69d /hotline/file_transfer.go | |
| parent | 9f89cd9fbbcec9f7f42c87ee0adc21427aab9f1c (diff) | |
Add option for account-specific file root
Diffstat (limited to 'hotline/file_transfer.go')
| -rw-r--r-- | hotline/file_transfer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go index 806466b..12725db 100644 --- a/hotline/file_transfer.go +++ b/hotline/file_transfer.go @@ -87,6 +87,7 @@ func (ftm *MemFileTransferMgr) Delete(id FileTransferID) { } type FileTransfer struct { + FileRoot string FileName []byte FilePath []byte RefNum [4]byte @@ -116,9 +117,10 @@ func (wc *WriteCounter) Write(p []byte) (int, error) { return n, nil } -func (cc *ClientConn) NewFileTransfer(transferType FileTransferType, fileName, filePath, size []byte) *FileTransfer { +func (cc *ClientConn) NewFileTransfer(transferType FileTransferType, fileroot string, fileName, filePath, size []byte) *FileTransfer { ft := &FileTransfer{ FileName: fileName, + FileRoot: fileroot, FilePath: filePath, Type: transferType, TransferSize: size, |