title: Saving a file locally in Databricks PySpark
body: <p>I am sure there is documentation for this somewhere and/or the solution is obvious, but I've come up dry in all of my searching.</p>
  
  <p>I have a dataframe that I want to export to a text file to my local machine.  The dataframe contains strings with commas, so just display -> download full results ends up with a distorted export.  I'd like to export out with a tab-delimiter, but I cannot figure out for the life of me how to download it locally.</p>
  
  <p>I have</p>
  
  <pre><code>match1.write.format("com.databricks.spark.csv")
  .option("delimiter", "\t")
  .save("file:\\\C:\\Users\\user\\Desktop\\NewsArticle.txt")
  </code></pre>
  
  <p>but clearly this isn't right.  I suspect it is writing somewhere else (somewhere I don't want it to be...) because running it again gives me the error that the path already exists.  So...  what <em>is</em> the correct way?</p>