lukasz-wronski / vscode-ftp-sync

Ftp Sync plugin for Visual Studio Code
https://marketplace.visualstudio.com/items/lukasz-wronski.ftp-sync
320 stars 89 forks source link

How to upload to root folder on remote #350

Open Shujee opened 2 years ago

Shujee commented 2 years ago

So I want to sync my /build folder to my remote server. It works, but creates /build on the server and then uploads everything inside that folder. I want it to upload to root folder of the remote machine. For example, currently it is doing:

root build css js

whereas I want it to do:

root css js

My configuration looks like this:

{ "host": "my.remote.host", "protocol": "ftp", "port": 21, "username": "super_user", "password": "42x2", "remotePath": "/", "secure": false, "uploadOnSave": false, "passive": false, "debug": false, "privateKeyPath": null, "passphrase": null, "agent": null, "allow": [ ], "ignore": [ "\.vscode", "\.git", "\.DS_Store" ], "generatedFiles": { "extensionsToInclude": [ ], "path": "/build" } }

I have tried changing path to / as well as empty string, but it always creates /build folder on the server. How can I ask it to just upload the content of /build folder to remote root folder?

harri00413 commented 2 years ago

Same problem here!