DBFS File Browser Error RESOURCE_DOES_NOT_EXIST:

Sharmila04
New Contributor

Hi,

I am new to databricks, and was trying to follow some tutorial to upload a file and move it under some different folder. I used DBFS option.

While trying to move/rename the file I am getting below error, can you please help to understand why I am getting this error? Though the file is already present.

DBFS File Browser Error
RESOURCE_DOES_NOT_EXIST: No file or directory exists on path /FileStore/vehicle_data.csv.

Also, while trying to delete this file, nothing is happening

image

Ajay-Pandey
Databricks MVP

Hi @Sharmila Tiwary Pain​ please add dbfs:/ before your path-

Your path should be like below-

dbfs:/FileStore/vehicle_data.csv.

Ajay Kumar Pandey

Aviral-Bhardwaj
Esteemed Contributor III

use these three commands and it will work

dbutils.fs.ls('dbfs:/FileStore/vehicle_data.csv')

dbutils.fs.ls('/dbfs/FileStore/vehicle_data.csv')

dbutils.fs.ls('/dbfs/dbfs/FileStore/vehicle_data.csv')

Thanks

Aviral

AviralBhardwaj

@Sharmila Tiwary Pain​  is this working now, please update

AviralBhardwaj