vscode-ftp-sync icon indicating copy to clipboard operation
vscode-ftp-sync copied to clipboard

Map local to remote directories. (specific upload locations)

Open TimVosch opened this issue 8 years ago • 6 comments

Hey, I added support to map local directories to remote directories.

For example, if I have a folder build and I want it to upload to my remote index instead of a build folder I'd do:

"directorymap": {
        "build": ""
    }

If I'd want to map my local test folder to a remote beta folder, i can do:

"directorymap": {
        "test": "beta"
    }

When you select local to remote and then directory test it will automatically upload to folder beta instead of test if this is specified in the directorymap

TimVosch avatar Apr 20 '16 19:04 TimVosch

I just realized it curently only works if you upload the whole directory.

If I have dist mapped to build and I where to upload a folder dist/css then it would still upload as dist/css and not build/css. This is not hard to change. I'll add it once I have some time.

TimVosch avatar Apr 21 '16 20:04 TimVosch

@TimVosch This would be a great thing to add. Did you have a chance to look into the issue you noticed with your original PR? If we could get this in that would be great. Let me know if you need a hand.

massimocode avatar Jun 27 '16 01:06 massimocode

@TimVosch Hello, due to recent merges, this PR has conflicts with merging currently. Could you please take a look and fix the conflicts so we can merge the change? Thanks a lot!

hajekj avatar Nov 01 '16 13:11 hajekj

This would a really good feature, please do it..

rabbishuki avatar Aug 23 '17 20:08 rabbishuki

PLEASE, merge this PR !

edimitchel avatar May 15 '18 18:05 edimitchel

PLEASE merge, i need this feature thx!

condorman avatar Oct 24 '21 16:10 condorman