cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.