You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add CpToInstance and CpFromInstance functions
Add file copy functionality to the SDK for copying files to/from
running instances via WebSocket streaming.
Features:
- CpToInstance: Copy local file/directory to instance
- CpFromInstance: Copy file/directory from instance to local
- WebSocket-based streaming with JSON control messages
- Recursive directory operations with cycle detection
- Archive mode preserving UID/GID/permissions
- FollowLinks option for symlink handling
- Progress callbacks via CpCallbacks
- Path traversal protection
Includes comprehensive unit tests with mock WebSocket.
0 commit comments