If someone saves a flat file in a Databricks notebook without specifying a location, where does it go?

User16826992666
Databricks Employee
Databricks Employee

I ran the code block below and now I can't find the file. Where would this get saved since no location was specified?

Cmd

sean_owen
Databricks Employee
Databricks Employee

In this case, you are just writing a file to the working directory of the driver process. It'll be under something like /home/[user] on the local file system. Anything you write to "/dbfs/..." however goes to distributed storage, even though it looks like a regular file. That would go into your 'root bucket' unless you write to a DBFS path under which another bucket has been mounted.

View solution in original post

jecastelo
New Contributor II

/Workspace/Users/your.email@companyname.com/myfile.txt