sshnet / sshnet/SSH.NET

Set file attributes in windows via sftp

Open
#378 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

Hello,
is there any possibility to set the file attributes like read only, hidden or archiv in windows.
If i try to donwload a document that is read-only i get an exception (permission denied).

How can i download the file with read only attribute?!

p.s: I'm using the latest version.

Contributor guide

Open the contributing guide

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 reproducing the SFTP download of a read-only Windows file and trace how file attributes are handled during the download. Review the issue's requested read-only, hidden, and archive behavior; done should include defined Windows attribute handling and a successful read-only download without the reported permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.