Folder Mapping - destination folder outside web root #130
-
Hi - is there a way to map an individual folder to a remote folder outside the webroot folder (but still within the same /home directory structure?). The folder is accessed via a website alias. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Nothing? My usual IDE lets me map on a folder-to-folder basis - I didn't realise that it was such a rare quality. VsCode looks absolutely brilliant, but this is a huge void. |
Beta Was this translation helpful? Give feedback.
-
I'm really not sure to understand your question.
What do you mean by that ?
Which If I understand correctly you have currently a project that has the Am I right ? If this is what you xant you should be able to achieve it using multiple contexts like this : [
{
"name": "server1",
"host": "<server1-host>",
"context": ".", // <-- A path relative to the workspace root folder (local project root).
"username": "username",
"password": "password",
"remotePath": "/public_html"
"ignore": ["folder1"],
},
{
"name": "server1-bis",
"host": "<server1-host>",
"context": "./folder1", // <-- A path relative to the workspace root folder (local project root).
"username": "username",
"password": "password",
"remotePath": "/home/folder1"
}
] Now for the fisrt context, all files/folders in your local projet (project root folder) will be uploaded to the "/plublic_htoml" folder on the remote except the "folder 1" folder. Note : All contexts are runned at the same time. |
Beta Was this translation helpful? Give feedback.
I'm really not sure to understand your question.
What do you mean by that ?
The default destination folder is define by the
remotePath
option. Are you saying that yourremotePath
is set to/public_html
?Which
/home
folder are you talking about ? The one at the root of your remote wher all your users are ?If I understand correctly you have currently a project that has the
remotePath
option set to/public_html
./public_html
being a folder at the root level of your remote.You want to be able to select a file inside your local project and upload it to your remote to another de…