mkloubert / vscode-deploy-reloaded

Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-deploy-reloaded
GNU Lesser General Public License v3.0
163 stars 39 forks source link

SFTP destination file is given current timestamp, not timestamp of source file #159

Open daldr-ntml opened 4 years ago

daldr-ntml commented 4 years ago

Description

With sftp copy, unable to give destination file the same timestamp as source file.

Actual behavior

An sftp copy gives the destination file a timestamp equal to the time/date of the sftp operation.

Expected behavior

The destination file should be given a timestamp equal to that of the source file.

The value of "syncTime" seems to make no difference to the timestamp.

Example config

        "targets": [
            {
                "type": "sftp",
                "name": "ledapc_AP",
                "description": "AP target on ledapc",
                "host": "ledapc3", "port": 22,
                "user": "root",
                "syncTime": false,

Your environment