If you are looking for a scala solution, here it is:def pathExists(tablePath: String): Boolean = {
try{
dbutils.fs.ls(tablePath)
return true
} catch {
case e: java.io.FileNotFoundException => println("Given path cannot be located")
...
Hi,You can use the disk usage unix command in a notebook in order to get the size. As you might know, any dbfs directory has mount on the unix system as well and you can access it using /dbfs.%sh du -h /dbfs/mnt/abc/xyz