rust-lang / rust-lang/ssh2-rs

ScpFileStat is currently unusable

Open
#290 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
566
Forks
163
Avg merge
4h 51m
Merged PRs (30d)
2

Description

I'm currently using the ssh2::session::Session::scp_recv api which returns a tuple of the Channel and the ScpFileStat, however the ScpFileStat is pretty much just an opaque blob as it doesn't appear to implement any conversion traits.

Would you approve an MR introducing methods to make the internal data accessible?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the ssh2::session::Session::scp_recv API and the returned ScpFileStat type. Determine which internal fields users need to access and whether methods or conversion traits fit the request. Done means ScpFileStat exposes its relevant data through a usable public API.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.