Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@thegame4craft
Copy link
Contributor

Added a new flag: notifyOnEmptyFile (default: false).

Details
* This flag controls whether the Uploading event should be triggered when an uploaded file is empty (totalLength == 0).
* When enabled and the uploaded file is empty, the Uploading event will still be raised.
* This behavior is currently implemented only for SCP uploads.

Use Case
I’m building a simple .NET Framework application that uploads configuration files to an SSH server. Each upload triggers a log entry via the Uploading event. However, empty files were previously ignored, and no log was written. With this change, the log will accurately reflect all upload attempts — including empty files — when the flag is enabled.

src/Renci.SshNet/ScpClient.cs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Rob-Hague Rob-Hague left a comment

Choose a reason for hiding this comment

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

Thanks 👍

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.