FileNotFoundError: [Errno 2] No such file or directory or IsADirectoryError: [Errno 21] Is a directory

AnaDel_Campo_Me
New Contributor

I have been trying to open a file on the dbfs using all different combinations:

if I use the following code:

with open("/dbfs/FileStore/df/Downloadedfile.csv", 'r', newline='') as f

I get IsADirectoryError: [Errno 21] Is a directory

with open("dbfs:/FileStore/df/Downloadedfile.csv", 'r', newline='') as f

FileNotFoundError: [Errno 2] No such file or directory