Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2023 02:45 PM
Hello @Keval Shah .
The import of dbutils is not explicitly required. (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs)
You can use the steps below to copy the file (https://docs.databricks.com/dev-tools/databricks-utils.html#file-system-utility-dbutilsfs)
dbutils.fs.cp("/FileStore/old_file.txt", "/tmp/new/new_file.txt") to copy the file.
I just listed dbutils.fs.ls("/mnt") and it works fine for a python notebook.
Hope this helps.
Thanks & Regards,
Nandini