Feature: add the file preview cache and device transfer gate
Add FilePreview.h/.cpp with the non-UI half of the double-click preview: a flat per-client cache (Preview\<clientKey>\<hash16>_<basename>), a per-client index keyed by remote path and SHA-256, size/mtime metadata hits, the 8 MiB gate, empty-file handling, LRU caps, and the executable confirmation plus ShellExecute helper. DeviceTransferGate is the shared device-level claim used by preview and the MCP file-transfer entry points so one device can only run one file transfer at a time; C2C claims both src and dst. The receive hooks (ObserveChunk/OnComplete) are implemented here and called by the file manager paths in the next commit. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
e39b9d1ed5
commit
02c22b82a7
4 files changed
+1352
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user