vscode-deploy-reloaded icon indicating copy to clipboard operation
vscode-deploy-reloaded copied to clipboard

How to select files without parent folder

Open untitledlt opened this issue 4 years ago • 0 comments

Description

Locally I my build goes to ./build folder and i want to deploy it to /var/www/public but it deploys build folder itself so full path on destination becomes /var/www/public/build/. How can i pick only contents (files and folders) from ./build and deploy them to public folder?

Actual behavior

Parent folder gets deployed to remote server.

Expected behavior

Select only folder contents without folder itself.

Steps to reproduce

{Please write here, including precondition and an example config, if possible}

Example config

"deploy.reloaded": {
			"packages": [
				{
					"name": "name",
					"files": [
						"build/**/*",
					],
					"deployOnSave": [ "deployName" ]
				}
			],
	
			"targets": [
				{
					"type": "sftp",
					"name": "deployName",
					"host": "***", 
					"dir": "/var/www/public/"
				}
			]
		}

Your environment

  • Operating system: OSX -> ubuntu
  • Visual Studio Code version: 1.52.1
  • Extension version: 0.89.0

untitledlt avatar Dec 27 '20 16:12 untitledlt