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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group