Skip to content

feat: add recursive directory upload support via SFTP - #904

Merged
cdalar merged 2 commits into
mainfrom
feat/directory-upload
Jun 13, 2026
Merged

cdalar merged 2 commits into
mainfrom
feat/directory-upload

Conversation

@cdalar

@cdalar cdalar commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds SSHUploadDir method to Remote that recursively uploads a local directory via SFTP
  • Extends ProcessUploadSlice to detect directories and route to the new method
  • Adds dirSize helper to pre-calculate total bytes for accurate progress reporting

Test plan

  • Upload a single file — existing behavior unchanged
  • Upload a directory — verify all files/subdirectories appear on remote
  • Progress bar updates continuously across all files in the tree
  • Error mid-upload (e.g. permission denied on a file) surfaces a clear error message

🤖 Generated with Claude Code

Extends ProcessUploadSlice to detect directories and upload them
recursively using a new SSHUploadDir method, with real-time progress
reporting across all files in the tree.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1ee042136c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/tools/scp.go Resolved
@codecov

codecov Bot commented Jun 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 29.76190% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 22.05%. Comparing base (c9a538d) to head (c72ee89).
⚠️ Report is 119 commits behind head on main.

Files with missing lines Patch % Lines
internal/tools/scp.go 9.09% 40 Missing ⚠️
cmd/common.go 52.50% 16 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #904       +/-   ##
===========================================
+ Coverage   11.58%   22.05%   +10.47%     
===========================================
  Files          36       41        +5     
  Lines        3115     4107      +992     
===========================================
+ Hits          361      906      +545     
- Misses       2710     3085      +375     
- Partials       44      116       +72     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Addresses codecov patch-coverage failure on PR #904 by exercising the
new directory-upload code paths added for recursive SFTP uploads.
@cdalar
cdalar merged commit 24de238 into main Jun 13, 2026
15 checks passed
@cdalar
cdalar deleted the feat/directory-upload branch August 19, 2026 13:53
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

⌂ 换网址