vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

change ownership of uploaded files?

Open holygekko opened this issue 2 years ago • 2 comments

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?

  • [x] Yes. SFTP IS AWESOME!

holygekko avatar Nov 02 '23 08:11 holygekko

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 avatar Dec 27 '23 08:12 Kogop

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

Kogop avatar Dec 27 '23 10:12 Kogop