Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

change ownership of uploaded files? #441

Open holygekko opened 8 months ago

holygekko commented 8 months ago

The files that are uploaded are uploaded as the SSH user. I'd like to change the ownership of the files to a different user/group.

Would it be possible to execute a command after the upload is finished or is there another way of doing that?

Does this project help you?

Kogop commented 6 months ago

This is important for me too. My work insists that all files must be under "dev" groups, but whenever I send files to server this extension put my user as group on the file, which is making me went over everything I have done and change group on every file. If there would be a way to automatically put files I save under a certain group, I would be very happy.

Kogop commented 6 months ago

To solve my own Issue I set useTempFile option to false in sftp.json and permission stopped changing.