How 9001/copyparty works
copyparty is a portable, multi-protocol file server. A typical browser workflow reaches the HTTP service, is checked against configured users and volumes, then lists, uploads, or downloads files; uploads are handled by the resumable-transfer/indexing subsystem and stored on the filesystem. The README also documents FTP, SFTP, SMB, TFTP, WebDAV, hooks, and LAN discovery. Some service wiring and feature implementations were not sampled, so those documented branches are shown without asserting internal call paths.
Main entry points: httpcli.py HTTP request handler · up2k.py Upload and index · httpsrv.py HTTP service · authsrv.py Users and volumes
Components 21
Access and services
- HTTP service
copyparty/httpsrv.py - HTTP connection
copyparty/httpconn.py - Users and volumes
copyparty/authsrv.py - Service hub
copyparty/svchub.py - FTP service
copyparty/ftpd.py - SFTP service
copyparty/sftpd.py - SMB service
copyparty/smbd.py - TFTP service
copyparty/tftpd.py
HTTP experience
- HTTP request handler
copyparty/httpcli.py - Browser UI
copyparty/web/browser.js - Upload client
copyparty/web/up2k.js
File operations
- Filesystem access
copyparty/bos/bos.py - Filesystem utilities
copyparty/fsutil.py - Upload and index
copyparty/up2k.py - File search
copyparty/u2idx.py - Media metadata
copyparty/mtag.py - Transfer database
copyparty/up2k.py
Runtime support
- Configuration
copyparty/cfg.py - Service broker
copyparty/broker_util.py - Event hooks
bin/hooks
Other components
- Browser user
Connections 23
- Browser user → HTTP service: accesses files
README.md - HTTP service → HTTP connection: accepts connections
copyparty/httpconn.py - HTTP connection → HTTP request handler: creates handler
copyparty/httpconn.py - Browser user → Browser UI: uses
README.md - Browser UI → HTTP service: requests files
- Upload client → HTTP service: uploads chunks
README.md - HTTP request handler → Users and volumes: checks access
copyparty/httpcli.py - Users and volumes → Configuration: loads settings
copyparty/authsrv.py - HTTP request handler → Filesystem access: serves files
copyparty/httpcli.py - HTTP request handler → Upload and index: handles uploads
copyparty/httpcli.py - HTTP request handler → File search: uses index
copyparty/httpconn.py - Upload and index → Filesystem access: writes files
copyparty/up2k.py - Upload and index → Filesystem utilities: uses utilities
copyparty/up2k.py - Upload and index → Users and volumes: reads volume config
copyparty/up2k.py - Upload and index → Media metadata: extracts tags
copyparty/up2k.py - Upload and index → Transfer database: stores index data
copyparty/up2k.py - HTTP request handler → Service broker: asks services
copyparty/httpcli.py - Service broker → Service hub: dispatches requests
copyparty/broker_util.py - Browser user → FTP service: transfers files
README.md - Browser user → SFTP service: transfers files
README.md - Browser user → SMB service: accesses shares
README.md - Browser user → TFTP service: transfers files
README.md - HTTP request handler → Event hooks: triggers hooks