SFTP deployment doesn't preserve file permissions

Answered

I have a file (shell script) that I've set as executable on my host (windows) and CLion is configured to deploy my project to a Unix-based docker container. The copied file has default (not executable) permissions. I read that it's up to the SFTP client to pass -P when uploading files in order to preserve client permissions. I don't see a way to configure this through CLion. The only option I saw is to override the default permissions for files and folders but this is not what I want because it would make all my files executable.

0
1 comment

Hi!

Actually, for macOS and Linux there is the "Preserve original file permissions (SFTP only)" option in File | Settings | Build, Execution, Deployment | Deployment | Options, but not for Windows. Please comment or upvote https://youtrack.jetbrains.com/issue/CPP-17258 in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

Please sign in to leave a comment.