title: How to create a empty folder in Azure Blob from Azure databricks
body: <p>I have scenario where I want to list all the folders inside a directory in Azure Blob. If no folders present create a new folder with certain name.</p>
  <p>I am trying to list the folders using dbutils.fs.ls(path).</p>
  <p>But the problem with the above command is it fails if the path doesn't exist, which is a valid scenario for me.</p>
  <p>If my program runs for the first time the path will not exist and dbutils.fs.ls command will fail.
  Is there any way I can handle this scenario dynamically from Databricks.</p>
  <p>It will also work for me if I can create an empty folder in Azure Blob from Databricks before executing my job.</p>
  <p>I have tried running below command from databricks notebook</p>
  <pre><code>   %sh mkdir -p /mnt/&lt;mountName&gt;/path/folderName 
  </code></pre>
  <p>Here the command runs successfully and even though my container in Azure Blob is mounted it doesn't create the folder.
  Sorry for such an elongated post. Any help is much appreciated. Thanks in advance</p>