Skip to content

Is it possible to upload specify files(build release) to linux without the whole structure of directory ? #551

@xtay573269555

Description

@xtay573269555

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions