-werners-
Esteemed Contributor III

Hi,

this solution will work indeed but is far from optimal.

You can read a whole folder at once instead of using a loop.

The difference between dbfs:/ and /dbfs/ is just the type of file interface.

/dbfs/ is used by spark, so that is the reason it works in spark.