mkloubert / vs-deploy

Visual Studio Code extension that provides commands to deploy files of a workspace to a destination.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vs-deploy
MIT License
131 stars 24 forks source link

For local (SMB) deploy to Windows Server, Deploy fails trying to make existing dir #157

Open boarmanc opened 5 years ago

boarmanc commented 5 years ago

I am trying to deploy to a windows file share named htdocs on server win-efedehe4j1i. Deploy fails trying to call mkdir on a dir (//win-efedehe4j1i/htdocs) that is already there. The share is fully accessible from the client; I have no problem creating or copying files from the client to the share manually.

Here are the settings:

 `"deploy": {
        "packages": [
            {
                "name": "eSM ",
                "description": "eSM version x",
                "files": [
                    "Source/htdocs/**/*.php"
                ]
            }
        ],
        "targets": [
            {
                "type": "local",
                "name": "Remote htdocs",
                "description": "htdocs on win-efedehe4j1i",
                "dir": "//win-efedehe4j1i/htdocs",
                "mappings": [
                    {
                        "source": "Source/htdocs",
                        "target": "/"
                    }
                ]   
            }
        ]           
    }`

When deploying a single test file with the above settings, I get:

Could not deploy file 'c:\Code\eSM\cboarman_APERIO-01644_eSlideManager_Dev\Source\htdocs\Login.php': Error: UNKNOWN: unknown error, mkdir '\win-efedehe4j1i\htdocs\'

Why is it trying to create a directory that is already there?

When I replace "local" with "test", it passes and I get:

Deploying file 'c:\Code\eSM\cboarman_APERIO-01644_eSlideManager_Dev\Source\htdocs\Login.php' to '/Login.php' ('Remote htdocs')... [OK] Finished