Skip to content

Format sparse v4 directory attributes safely - #175

Open
OskarEichler wants to merge 1 commit into
net-ssh:masterfrom
OskarEichler:codex/sparse-longname
Open

Format sparse v4 directory attributes safely#175
OskarEichler wants to merge 1 commit into
net-ssh:masterfrom
OskarEichler:codex/sparse-longname

Conversation

@OskarEichler

Copy link
Copy Markdown

Problem: SFTP v4 permits optional file attributes, but directory longname formatting assumed permissions, size, and modification time were always present and raised on sparse responses.

Fix: Render missing permissions as unknown bits, use a size placeholder, and leave the timestamp field blank when absent.

Regression coverage: Adds focused upstream cases for sparse v4 attributes. V4 name tests: 7 runs / 13 assertions. Full suite: 434 runs / 1,197 assertions with only the pre-existing Ruby 4 StartTest positional-hash/keyword expectation failure.

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.

1 participant