How belmarbelmar/file-sharer works
File-Sharer is a desktop application for finding peers on a local network and sending or receiving files. The main workflow starts in the GUI: choose a file or folder, scan for reachable peers, select a recipient, and initiate a transfer; incoming transfers are accepted or rejected and saved locally. Transfer history is stored in config.json. The sampled source supports the GUI’s calls to scanning, sending, receiving, and history helpers; the exact socket-level interaction between sender and receiver is inferred, so it is shown as unverified.
Main entry points: gui.py Sharing GUI · utils.py History helpers · sender.py File sender · receiver.py File receiver
Components 9
Desktop app
- App entry
main.py - Sharing GUI
gui.py
Transfer operations
- File sender
sender.py - File receiver
receiver.py
Network and history
- Peer scanner
network.py - History helpers
utils/utils.py - Transfer history
config.json
Other components
- User
- Network peer
Connections 13
- User → App entry: launches
main.py - App entry → Sharing GUI: creates
main.py - User → Sharing GUI: operates
- Sharing GUI → Peer scanner: scans peers
gui.py - Peer scanner → Sharing GUI: returns results
gui.py - Sharing GUI → File sender: starts send
gui.py - File sender → Network peer: sends file
- Network peer → File receiver: offers file
- Sharing GUI → File receiver: starts receive
gui.py - Sharing GUI → History helpers: loads history
gui.py - File sender → History helpers: records sent
sender.py - File receiver → History helpers: records received
receiver.py - History helpers → Transfer history: reads and writes
utils/utils.py