FileNotFoundError: [Errno 2] /dbfs/fileone.csv

Haima
New Contributor

I'm trying to transfer my csv file from databricks to sftp but i'm getting file not found error.

here is my code:

file_size = sftp.stat("/dbfs/fileone.csv").st_size

with open("/dbfs/fileone.csv", "rb") as fl:

return self.putfo(fl, Destinationpath, file_size, callback, confirm)