Skip to content

Add fileSize method to retrieve remote file size via SFTP #76

Description

@CherfaElyes

Description

Introduce a new fileSize(String filePath) method that returns the size of a remote file using SFTP (stat).

The method:

  • Verifies authentication before execution
  • Uses SFTPv3Client.stat() to read file attributes
  • Returns the file size (attributes.size)
  • Throws IOException if the file does not exist

Activity

  1. self-assigned this
    on Feb 17, 2026
  2. added theissue type on Feb 17, 2026
  3. added a commit that references this issue on Feb 18, 2026
  4. added 4 commits that reference this issue on Feb 18, 2026
  5. added a commit that references this issue on Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestjavaPull requests that update Java code

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions