Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 12:02 AM
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.