This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| import logging | |
| def list_and_download_files(base_url, directory, download_dir): | |
| # Make a request to the directory URL | |
| url = base_url + directory | |
| response = requests.get(url) | |
| logging.info('response: %s',response) | |
| if response.status_code == 200: | |
| # Create download directory if it doesn't exist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'hello' |