I'm using the task FtpUpload@2 in an Azure DevOps pipeline to upload a static website to a hosting company. But I'm not sure how to specify the root folder at the destination website. (I know how to do a subfolder, but not the root folder.) Here's what I've got for that step so far:
- task: FtpUpload@2
inputs:
credentialsOption: 'inputs'
serverUrl: 'ftp://ftp.destination.com'
username: '$(MyUsername)'
password: '$(MyPassword)'
rootDirectory: '.'
filePatterns: '**'
remoteDirectory: '.'
clean: true
cleanContents: false
preservePaths: true
trustSSL: false
The thing is I don't know what I should use for remoteDirectory. Should I use an empty string (''), or should I use a single period like I've got here ('.'). Or should I use a single slash ('/')? Or should I use something entirely different?