Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set file permissions after writing an SFTP file #202

Closed
funkyshu opened this issue Sep 12, 2024 · 0 comments
Closed

Add ability to set file permissions after writing an SFTP file #202

funkyshu opened this issue Sep 12, 2024 · 0 comments
Assignees

Comments

@funkyshu
Copy link
Member

funkyshu commented Sep 12, 2024

Is your feature request related to a problem? Please describe.
Some servers can't/won't set umasks properly and have requested changes to a file permission after upload.

Describe the solution you'd like
Add an SFTP-specific Option that allows you to set default permissions for newly created/updated files on open for write or touch.

Describe alternatives you've considered
Adding Chmod(string) error to the File interface. However this means cloud fs's like S3/GCS/Azure would have end up with no-op functions. For not make this SFTP-specific with a backend-specific option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant