<p>I'm just about positive that this Task is buggy and custom FTP Commands do not work at all. However, if the directory you specify in "Remote directory" does not exist it will be created so don't worry about doing a <code>mkdir</code>.</p>

CC BY-SA 4.0
2020-05-01T22:46:11.053Z
2020-05-01T23:06:22.933Z
2020-05-01T23:06:22.933Z
Crowcoder
<p>I developed a .net core console application and I want to deliver it to a FTP server. </p>

<p>I managed it in Azure Devops with FTP Upload task. All good here.</p>

<p>But before upload content to FTP, I want to make sure that remote directory exists, if not then create.</p>

<p>I put command <code>mkdir test</code> in FTP command but I got error that command is unknown and deployment is not done</p>

<p><a href="https://i.sstatic.net/nrHcr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nrHcr.png" alt="enter image description here"></a></p>

<p><a href="https://i.sstatic.net/UW2G9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UW2G9.png" alt="enter image description here"></a></p>

<p>How to achieve that ?</p>

<azure-devops>
Azure DevOps pipeline upload to FTP after create directory on remote server
Snake Eyes
# Azure DevOps pipeline upload to FTP after create directory on remote server

(Asked by: username_0 on 2020-04-15)

I developed a .net core console application and I want to deliver it to a FTP server.

I managed it in Azure Devops with FTP Upload task. All good here.

But before upload content to FTP, I want to make sure that remote directory exists, if not then create.

I put command `mkdir test` in FTP command but I got error that command is unknown and deployment is not done

[![enter image description here](https://i.sstatic.net/nrHcr.png)](https://i.sstatic.net/nrHcr.png)

[![enter image description here](https://i.sstatic.net/UW2G9.png)](https://i.sstatic.net/UW2G9.png)

How to achieve that ?

**Tags:** azure-devops


---

## 1 answers

### Answer by username_1 on 2020-05-01. Score: 1

I'm just about positive that this Task is buggy and custom FTP Commands do not work at all. However, if the directory you specify in "Remote directory" does not exist it will be created so don't worry about doing a `mkdir`.


---

