Skip to content

Conversation

@umputun
Copy link
Member

@umputun umputun commented Apr 10, 2025

Summary

  • Add DeleteFile method to FTP container
  • Add full file operations (upload, download, list, delete) to SSH container
  • Add full file operations (upload, download, list, delete) to Localstack/S3 container
  • Update README with complete examples

Details

This PR adds consistent file operation methods to all three main container types (FTP, SSH, and Localstack/S3). The implementations handle nested directories automatically, so users can upload files to any path without having to manually create parent directories first.

All implementations have:

  • SaveFile: Upload files to the container
  • GetFile: Download files from the container
  • ListFiles: List files in a directory
  • DeleteFile: Remove files from the container

Each implementation has comprehensive tests that verify all operations work correctly with both simple and nested paths.

- Add DeleteFile method to FTP container
- Add file operations (get, save, list, delete) to SSH container
- Add file operations (get, save, list, delete) to Localstack (S3) container
- Add comprehensive tests for all new methods
- Update README with examples for all file operations
@umputun umputun requested a review from Copilot April 10, 2025 03:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • go.mod: Language not supported

@umputun umputun merged commit f3b522c into master Apr 10, 2025
4 of 6 checks passed
@umputun umputun deleted the feature/file-operations branch April 10, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants