cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

"dbfs:" quote added as a prefix to file path

dbsuersu
New Contributor II

There is a mount path /mnt/folder

I am passing filename as a variable from another function and completing the path variable as follows:

filename=file.txt

path=/mnt/folder/subfolder/+filename

When I'm trying to use the path variable is a function, for example:

function1(path)

The following error is encountered:

"Path does not exist: dbfs:/mnt/folder/subfolder/file.txt"

Not sure why "dbfs:" is being prefixed in the path

1 REPLY 1

-werners-
Esteemed Contributor III

databricks uses the databricks file system (dbfs) by default.

So my guess is you did not mount the path in databricks.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now