Unable to copy mutiple files from file:/tmp to dbfs:/tmp
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2021 06:52 PM
I am downloading multiple files by web scraping and by default they are stored in /tmp
I can copy a single file by providing the filename and path
%fs cp file:/tmp/2020-12-14_listings.csv.gz dbfs:/tmp
but when I try to copy multiple files I get an error
%fs cp file:/tmp/*_listings* dbfs:/tmp
Error
FileNotFoundException: File file:/tmp/_listings does not exist
Hoping someone has seen this before
Labels:
- Labels:
-
Copy
-
Dbfs - databricks file system