Skip to content

Issue #76: Add fileSize method to retrieve remote file size via SFTP - #79

Merged
NassimBtk merged 7 commits into
mainfrom
feature/issue-76-add-filesize-method-to-retrieve-remote-file-size-via-sftp
Feb 19, 2026
Merged

NassimBtk merged 7 commits into
mainfrom
feature/issue-76-add-filesize-method-to-retrieve-remote-file-size-via-sftp

Conversation

@CherfaElyes

Copy link
Copy Markdown
Contributor
  • Added fileSize(String filePath) method to retrieve remote file size via SFTP.
  • Tested the method with JUnit tests and on metricshub.

- Added `fileSize(String filePath)` method to retrieve remote file size via SFTP.
- Tested the method with JUnit tests and on metricshub.
@CherfaElyes CherfaElyes self-assigned this Feb 18, 2026
@CherfaElyes CherfaElyes linked an issue Feb 18, 2026 that may be closed by this pull request
* Added try-catch clause on fileSize method.
* Adapted unit tests consequently.
…-file-size-via-sftp' of https://github.com/MetricsHub/ssh-java into feature/issue-76-add-filesize-method-to-retrieve-remote-file-size-via-sftp
* Added finally clause to make sure the client is closed.
@NassimBtk
NassimBtk merged commit d9b8c3b into main Feb 19, 2026
4 checks passed
@NassimBtk
NassimBtk deleted the feature/issue-76-add-filesize-method-to-retrieve-remote-file-size-via-sftp branch February 19, 2026 11:05
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.

Add fileSize method to retrieve remote file size via SFTP

2 participants