0

I have been trying to search a folder within databricks using a wildcard for csv's

The code i am using is

   files = dbutils.fs.ls ("/tmp/airlines/alcsv/*.csv")

for file in files:
    print(file)

then i get the following error

java.io.FileNotFoundException: /tmp/airlines/alcsv/*.csv

Could someone help me out please

Rob
  • 59
  • 1
  • 12
  • 1
    The [documentation](https://docs.databricks.com/dev-tools/databricks-utils.html#ls-command-dbutilsfsls) says the argument is a directory. It doesn't say anything about filenames or wildcards. – Barmar Oct 20 '22 at 21:49

0 Answers0