vscode-sftp
vscode-sftp copied to clipboard
Is it possible to upload specify files(build release) to linux without the whole structure of directory ?
My config of sftp:
{
"name": "ubuntu",
"protocol": "sftp",
"port": 22,
"host": "192.168.99.30",
"username": "root",
"remotePath": "/tmp",
"privateKeyPath": "C:\\Users\\admin\\.ssh\\id_rsa",
"filePerm": 644,
"dirPerm": 755,
"watcher": {
"files": "target/x86_64-unknown-linux-musl/release/myagent",
"autoUpload": true,
"autoDelete": false
},
"uploadOnSave": false,
"useTempFile": false,
"openSsh": false
}
The upload result:
root@ubuntu:/tmp# ll target/x86_64-unknown-linux-musl/release/myagent
-rw-r--r-- 1 root root 3917680 2025-06-30 13:39 target/x86_64-unknown-linux-musl/release/myagent
I want to upload the file(without directory structure) to the destination as /tmp/myagent. Is it possible or not ?