aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_transfer.go
AgeCommit message (Collapse)Author
2025-11-28Merge branch 'master' of https://github.com/jhalter/mobiusHEADmainRuben Beltran del Rio
2025-11-19Fix error when downloading incomplete filesJeff Halter
2025-07-06Add ForkType type alias for improved type safetyJeff Halter
- Replace [4]byte with ForkType in ForkInfoList struct - Update constants ForkTypeDATA and ForkTypeMACR to use ForkType - Add String() method to ForkType for better debugging - Improve consistency with existing type patterns (FieldType, TranType) - Clean up unused code and improve documentation
2025-06-26Refactor FormattedPath to use scanner interface and add comprehensive testsJeff Halter
- Replace manual byte slicing with bufio.Scanner for safer parsing - Add pathSegmentScanner implementing bufio.SplitFunc pattern - Add comprehensive table tests covering edge cases and special characters - Improve code safety with proper bounds checking - Follow established codebase patterns for binary data parsing
2025-06-26Replace filepath.Join with path.Join for Windows compatibilityJeff Halter
Replace all instances of filepath.Join with path.Join across the codebase to improve Windows compatibility following the guidance from https://github.com/golang/go/issues/44305. Key changes: - Replaced filepath.Join with path.Join in 14 files - Updated import statements appropriately - Resolved variable shadowing issues where function parameters named 'path' were conflicting with the path package - Maintained filepath imports where needed for OS-specific functions like filepath.Walk, filepath.IsAbs, filepath.Dir, and filepath.Base All tests pass, confirming the changes maintain functionality while improving cross-platform compatibility.
2025-06-19Ensure temporary upload files are closed before renameJeff Halter
This seems to be important on Windows! See #161
2025-02-04Allow to delete home files / replace filesRuben Beltran del Rio
2024-07-30Fix commentsJeff Halter
2024-07-25Wrap file transfer errors with more contextJeff Halter
2024-07-21Clean up loggingJeff Halter
2024-07-19Add option for account-specific file rootJeff Halter
2024-07-19Appease linterJeff Halter
2024-07-17Extensive refactor, quality of life enhancementsJeff Halter
* Added ability to reload config, agreement, news, and user accounts without restarting the server by sending SIGHUP to the running process * Added ability to use modern unix or windows line breaks in Agreement.txt and MessageBoard.txt instead of classic MacOS `\r` breaks. * Extensive refactor towards swappable backends for the active server state * Extensive refactored towards making the hotline package generic and re-usable for alternate server implemenations * Fix bug where users whose accounts have been deleted would not be disconnected
2024-07-09Extensive refactor and clean upJeff Halter
2024-06-24Refactoring, cleanup, test backfillingJeff Halter
2024-06-17Clean up various linter warningsJeff Halter
2024-06-16Fix broken io.Reader implementationsJeff Halter
2022-06-23Implement GetClientInfoText with per-client file transfer infoJeff Halter
2022-06-21Add support for server bannerJeff Halter
2022-06-20Convert hardcoded path separators to filepath.JoinJeff Halter
2022-06-08Fix folder upload hang with resource forksJeff Halter
2022-06-05Implement file previewJeff Halter
2022-06-03Initial implementation of file transfer resumeJeff Halter
2021-08-12More cleanupJeff Halter
2021-07-28Move code to hotline dirJeff Halter