aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_transfer.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-07-19 21:31:42 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-07-19 21:40:38 -0700
commitdcd23d5355badf66c34ffd63d3c44734e87ebf17 (patch)
treeeac7ec135e1e06ac8f4e9cb6aa0e04d392d1d69d /hotline/file_transfer.go
parent9f89cd9fbbcec9f7f42c87ee0adc21427aab9f1c (diff)
Add option for account-specific file root
Diffstat (limited to 'hotline/file_transfer.go')
-rw-r--r--hotline/file_transfer.go4
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,