title: How do you download a file from Azure Data Lake when you know the type of the file but not the name?
body: <p>I can run the following to download the file &quot;some/path/known_name.json&quot;</p>
  <pre><code>def download_file():
      try:
          file_system_client = FileSystemClient.from_connection_string(...)
  
          full_file_location = &quot;some/path/known_name.json&quot;
          target_file_client = file_system_client.get_file_client(full_file_location)
  
          download=target_file_client.download_file()
          downloaded_bytes = download.readall()
          local_file = open('my_file.json','wb')
          local_file.write(downloaded_bytes)
          local_file.close()
  
      except Exception as e:
          print(e)
  
  </code></pre>
  <p>My question is: how do I download from some other path when the name of the file is unknown but the file type is known e.g. &quot;different/path/xxx.json&quot;</p>