Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

How to select files without parent folder #168

@untitledlt

Description

@untitledlt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions