Reputation: 2100
Why cannot I do somthing like this?
import spark.implicits._
dbutils.fs.ls(folderName).toDF
throws an error of
value toDF is not a member of Seq[com.databricks.backend.daemon.dbutils.FileInfo]
But it works fine in databricks notebook. Can anyone advice what I am missing?
I am using the following library "com.databricks" %% "dbutils-api" % "0.0.4"
Upvotes: 0
Views: 374
Reputation: 1851
From the relevant Databricks page:
DBUtils are not supported outside of notebooks
Upvotes: 1